0
How to add two numbers
Why my this code is not working https://code.sololearn.com/c5RQ90lD02Zn/?ref=app
9 Answers
+ 1
#Here is the code! Input in one line
#Input: 3 5
#=>Output: 8
a,b=input().split(" ")
print(a+b)
+ 1
#This is your code, input in two lines:
#Input: 3
# 5
#=>Output: 8
a = int(input())
b = int(input())
print(a+b)
0
https://code.sololearn.com/c5RQ90lD02Zn/?ref=app
I copied pasted your code and it's still not working
I want to take two number from user and add them together
0
so you can do, with input in one line:
a,b=input().split(" ")
print(a+b)
0
Can anyone right exact code to add two number by taking input form user
So I can see wants wrong with my code
0
This exact code is working in my pc but not here why????
https://code.sololearn.com/c5RQ90lD02Zn/?ref=app
0
The shortest way ever :
print(float(input())+float(input()))
- 1
ĐĐĐ