0

What he folds?

(a:= input()) (b:= input()) print (a+b) Why does he put two numbers side by side instead of together?

21st Mar 2022, 2:20 AM
Nexus
Nexus - avatar
1 Réponse
+ 3
Nexus Because input () function bydefault returns string so if you take input as number then it will be concatenate. So 1 and 2 would be 12 So if you want to take input as number then cast input () with int function like: a = int(input()) b = int(input()) print (a + b) https://www.sololearn.com/post/1159836/?ref=app
21st Mar 2022, 2:31 AM
A͢J
A͢J - avatar