0
Whats wrong?
a=input() b=input() c=a+b print (c)
4 Antworten
+ 9
The input will take a string value. So if you enter a=1 and b=2, c will print "12".
You can wrap it in either the int() or float() to get the correct sum.
a=int(input())
b=int(input())
c=a+b
print(c) #3
+ 6
Only input () will take String value so you should do typecast with int like this
int(input()) for numeric value
+ 5
Indentation 3rd line's wrong. What do I win?
+ 2
hey.... u did it👍👍