Are object literals Pythonic? April 26, 2023 by Tarik Why not just use a dictionary? p = {'name': 'John Smith', 'age': 23} print p print p['name'] print p['age']