Question: Create a list containing three strings. Then print the entire list at once. The output would look something like this... [ Red , Green,Blue ]
Create a list containing three strings. Then print the entire list at once. The output would look something like this...
RedGreen,Blue
Part
Create a list containing five integers and then print it by looping through the list and displaying each item in the list one item at a time. So if you have a list that contains it would print like this:
create an empty list myList Then code a loop that will run three times. Inside the loop, get input from the user and use the list object's "append" method to add that data the list
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
