Python short course: Lists in python

 Lists are Python's most flexible ordered collection object type. Lists may be changed in place, and they are mutable objects.


 
L = [x**2 for x in range(5)]  # list comprehensions and maps

Comments