#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: 'test' test Provide some input, q to quit: [4,5] [4, 5] Provide some input, q to quit: 5.6 5.6 Provide some input, q to quit: 5 5 Provide some input, q to quit: 5,4 (5, 4) Provide some input, q to quit: 3, (3,) Provide some input, q to quit: 4+3j (4+3j) Provide some input, q to quit: q """