Creating a list: - Tom Kleen

L = [12,43,17] # This is a list definition. print( T[0] ) # print first element of tuple. print( L[0] ) # print first element of list. Note that it is not obvious if the item is a tuple or list when it is accessed. It is only obvious when it is defined. Also note that the entire contents of a list may be printed out as follows: print( L ) ................
................