Python Intermediate

Lists

To store various values, python provides a number of build-in collections types. lists are one of them. Its like C arrays.

my_list = [ 'hi','I','am','10']
print(my_list[2])

Dictionaries

We can use only immutable objects in Dictionaries key which can’t be changed.

Previous
Next