+ 1

Where is error?

Here is my code one = int() two = int() sum = int(one + two) print(sum)

5th May 2022, 10:56 AM
Furchik
Furchik - avatar
3 Answers
+ 1
# maybe you meant: one = int(input()) two = int(input()) sum = one + two print(sum) --------------------------------------------------- int(obj) -> converts obj to integer (number) input() -> asks user for input in console
5th May 2022, 11:01 AM
Sousou
Sousou - avatar
0
Thnx. I remember input)
5th May 2022, 11:52 AM
Furchik
Furchik - avatar