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 item item item item 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
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
