calculator

Create a new file, calc.py, which does the following:

$ python calc.py 
Enter a number: 665
Enter another number: 1
665 plus 1 is 666

Show solution

# calc.py
x = int(input("Enter a number: "))
y = int(input("Enter another number: "))
print(x, "plus", y, "is", x + y)


previous: str and int next: booleans