Tuesday, October 18, 2011

three basic data structure in python

1)list,list is the sequence of data,created with [],and has order,can be accessed by index
2)dictionary,dictionary is key:value list,created with {} and do not have a order,key must be unique
3)tuple,tuple is a instance list that can not be changed,created by (),and do have order,accessed by index

No comments:

Post a Comment