Lists and dictionaries are both handy tools in Python!
Lists:
my_list[0]
shows you the first item.Dictionaries:
my_dict['key']
.So, use lists when you want simple data and choose dictionaries when you need things to be organized!
Lists and dictionaries are both handy tools in Python!
Lists:
my_list[0]
shows you the first item.Dictionaries:
my_dict['key']
.So, use lists when you want simple data and choose dictionaries when you need things to be organized!