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 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
Get step-by-step solutions from verified subject matter experts
