Python for Django Developers: Part 2
Lists, Dictionaries and Tuples Lists, dictionaries and tuples are used to store collections of objects. They are differentiated from each other by the delimiter they use: []. A list. E.g. [“one”,”two”] {}. A dictionary. E.g. {1:”one”, 2:”two”} (). A tuple. E.g. (“one”, 2) Lists you should be very familiar with, as we all use lists daily. A dictionary is also straight …