Python Programming
Monday, August 25, 2014
Sequences and lists
The basic structure for creating a list is as follows:
Name = [‘type1’,’type2’,’type3’,’type4’]
See example below.
The list starts numbering with 0. Notice how when cars[0] is called after the list is created the name that shows up is Mercedes.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment