+ 4

Need help!

lists are confusing me & difficult to get ideas

11th Jan 2017, 3:50 PM
Shadow Windster
Shadow Windster - avatar
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'
11th Jan 2017, 11:11 PM
ramzi
ramzi - avatar
+ 2
list is like an array.
8th Mar 2018, 6:48 AM
K.Suhanya
K.Suhanya - avatar
+ 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
11th Jan 2017, 10:59 PM
Tuchy
Tuchy - avatar
+ 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.
13th Jan 2017, 7:42 AM
Rudus
Rudus - avatar