#Ex 4.6 from A primer on... while True: value = input("Provide some input, q to quit: ") if value == 'q': break result = eval(value) print(result, type(result)) """ Terminal> python objects_qa.py Provide some input, q to quit: 1 1 Provide some input, q to quit: 2.0 2.0 Provide some input, q to quit: [3,4] [3, 4] Provide some input, q to quit: (4,5,5,'six') (4, 5, 5, 'six') Provide some input, q to quit: 4+3j (4+3j) Provide some input, q to quit: q """