Why do I need an empty list? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do I need an empty list?

6th Aug 2016, 8:17 AM
igormintz
igormintz - avatar
1 Answer
+ 2
For example, you might have a program that adds and removed items of the list during runtime, based on user behavior. Then you would declare an empty list and add items when necessary.
9th Aug 2016, 2:59 PM
James Flanders