Question: 2.) 4 points Write the Python code to loop from 0 to 10, inclusive. At each iteration, your loop should output the square of the

 2.) 4 points Write the Python code to loop from 0

2.) 4 points Write the Python code to loop from 0 to 10, inclusive. At each iteration, your loop should output the square of the loop counter. For 1 bonus point: what would you change in your code to count by 2s? 3.) 1 point Suppose a variable named myList contains the list [0, 9, 1, 8, 2, 3,4,5, 8, 8, 7. Write the single Python statement that would return the sub-list [3, 4, 5]. For 1 bonus point: what single statement would return a copy of the entire list myList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!