Question: This is all for Python, thank you! First, I need to create a list that contains 3 strings. Then I need the entire list printed

This is all for Python, thank you!

First, I need to create a list that contains 3 strings. Then I need the entire list printed at once. The output would look like this: [Red,Green,Blue]

Secondly, I need a list that contains 5 numbers and then that list needs to be printed by looping it through the list and display each item in the list one by one at a time. So the list would contain 1, 2, 3, 4, 5, so it would print like this:

1 2 3 4 5

Lastly, I need to create an empty list ("myList = []"). Then I need to code a loop that will run 3 times. Inside the loop, I need to get input from the user and use the list object's "append" method to add that data to the list.

If you could do all three of these steps I would be extremely grateful, thank you!

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!