0
Simple calculator
For the simple calculator, I wrote: x = int(input()) y = int(input()) #calculates the amount total = (x + y) print(total) Use to pass the challenge if you'd like. Does this look right to everyone else? Is there a better way?
4 odpowiedzi
+ 1
x=int(input())
y=int(input())
print(x+y)
Or
print(int(input())+int(input()))
0
a = input("first number: ") or '2'
b = input("second number: ") or '3'
print(f'{int(a)+int(b)}')
print(eval(a+'+'+b))
print(int(a)+int(b))
0
So what is your question?
0
NEZ, I really like your reply. Thank you for the help