Why are
x and
y strings rather than ints within 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)
print(x * y)
print(x / y)
print(x % y)
if input("Play again? ") == "no":
play = False