+ 4
Need help!
lists are confusing me & difficult to get ideas
4 Réponses
+ 3
Put it this way, you have a closet, and you can place things inside of it, each shelve has a number, and you have an infinite number of shelves. Basically a list is this closet. You can put any stuff inside of it, switch them, remove them, etc..
Closet=['t-shirt','pyjama','underwear','jeans',]
print(closet[0])
----> this will print the item on the shelve 0, which is 't-shirt'
+ 2
list is like an array.
+ 1
list is more of like an array in PHP and visual basic. It's a space left aside to store multiple values in a program
+ 1
As for me lists sound like a first step into database programming. Maybe if you start programming a database foryour CDs, DVDs, books or whatsoever, you could store some details into your lists.