Lists
=> another type of object in Python
=> used to store an indexed list of items
=> create using "square brackets" , with "commas"
=> The first item's index is 0
=> empty list is created with an empty pair of square brackets
=>it can also include several different types
=> can be nested within other lists
=> Indexing out of the bounds of possible list values causes an index Error
=>Indexing Strings
words = ["hello","world","i"]
print(words[0])
No comments:
Post a Comment