How can I read inputs as numbers?
Why are x and y strings instead of ints in the below code? (Note: in Python 2.x use raw_input(). In Python 3.x use input(). raw_input() was renamed to input() in Python 3.x) play = True while play: x = input("Enter a number: ") y = input("Enter a number: ") print(x + y) print(x – y) … Read more