+ 1
A Programm that takes the sum of two integrs
I tried it with the following code can you explain what I did wrong x = int("2") y = int("8") sum = int(x) +int (y) print(sum)
9 Antworten
+ 4
Okay Thursday but in line 3 you can write sum = x + y because you have already converted them into int.
+ 3
a=int(input())
b=int(input())
print(a+b)
+ 2
Your codes seems to be working fine. Do you want to take input from user?
+ 1
Yes I think it would be good but it isn't really important I got the case from the python3 module basic concepts
And the name of the task is Basic Calculator
+ 1
Thanks a lot 🙏
0
So I don't want that you think that this was my idea
0
Yes it works in the regullary Python compiler but not in code sulution Simple Calculator
0
Because in Testcase 2 is my input with 11 and the output 33 and the expected is 22 there is the same story but I could read from the Testcase 1 that it is supposed to be the sum of 3 and 6
0
print(sum(x, y))