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...
[Red,Green,Blue]
Part 2
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 1,2,3,4,5, it would print like this:
1
2
3
4
5
3) 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 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!