>>> phonelist = [938477566, 938377264,947662781]
>>> print phonelist
[938477566, 938377264, 947662781]
>>> print phonelist[0]
938477566
>>> phonebook = {"John" : 938477566, "Jack" : 938377264, "Jill" : 947662781}
>>> print phonebook
{'Jill': 947662781, 'John': 938477566, 'Jack': 938377264}
>>> print phonebook["John"]
938477566
See also |