Question: When should you use a Python list to store your data? You find yourself using variables named item 1 , item 2 , item 3

When should you use a Python list to store your data?
You find yourself using variables named item1, item2, item3, item4, etc.
The data is related and you want to be able to process it using a loop instead of multiple statements processing each item individually.
The data is related and you don't know how many items you will need to store.
All of the above
None of the above
 When should you use a Python list to store your data?

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!