Python List is a powerful data structure that you almost need it in every program. Python List can be used to hold a collection of items which can be any type. In this post, I will use examples to describe how to use python List.
Python List Declaration¶
It is easy to create a python list object. The following code declare a List L and initialize it with 4 values.
In [1]:
L = [1, 2, 'Jim', ('hello, word')]
print L
[1, 2, 'Jim', 'hello, word']
Data look up in python List¶
We can locate the elements in the List by index.
[Read More...]










