Question: In the Python shell, you can use the following command to view the list class public interface: dir ( list ) You can use the

In the Python shell, you can use the following command to view the list class public interface:
dir(list)
You can use the following command to view descriptions for the list class methods:
help(list)
Make sure you test your program each time you add the code for a given part.
This is called incremental testing.
It is better to find errors early so you do not repeat them.
YOU ARE NOT ALLOWED TO HARD-CODE AN ANSWER TO ANY PART.
For example, for part 1, you cannot have:
print (1)
print (7)
print (12)
For this part, you should use list indexing to print each item.
YOU ARE NOT ALLOWED TO HARD-CODE THE LENGTH OF THE LIST.
For example, for part 2, you cannot have:
print (12)
For this part, you should use the len() function.
YOU ARE NOT ALLOWED TO RE-INITIALIZE myList IN ANY PART.
Your code MUST progressively modify myList as specified in the comments.
Do NOT write code in any part like:
myList =[1,2,3,4,5,6,7,8,9,10,11,12]
or
myList =[12,11,10,9,8,7,6,5,4,3,2,1]
or
myList = anything else

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!