0

How to add two numbers

Why my this code is not working https://code.sololearn.com/c5RQ90lD02Zn/?ref=app

27th Oct 2020, 6:48 PM
Abhishek Bhartiya
Abhishek Bhartiya - avatar
9 Answers
+ 1
#Here is the code! Input in one line #Input: 3 5 #=>Output: 8 a,b=input().split(" ") print(a+b)
28th Oct 2020, 12:55 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
#This is your code, input in two lines: #Input: 3 # 5 #=>Output: 8 a = int(input()) b = int(input()) print(a+b)
28th Oct 2020, 12:56 PM
Alexander Thiem
Alexander Thiem - avatar
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
27th Oct 2020, 7:05 PM
Abhishek Bhartiya
Abhishek Bhartiya - avatar
0
so you can do, with input in one line: a,b=input().split(" ") print(a+b)
27th Oct 2020, 8:15 PM
Alexander Thiem
Alexander Thiem - avatar
0
Can anyone right exact code to add two number by taking input form user So I can see wants wrong with my code
28th Oct 2020, 6:40 AM
Abhishek Bhartiya
Abhishek Bhartiya - avatar
0
This exact code is working in my pc but not here why???? https://code.sololearn.com/c5RQ90lD02Zn/?ref=app
29th Oct 2020, 6:17 AM
Abhishek Bhartiya
Abhishek Bhartiya - avatar
0
The shortest way ever : print(float(input())+float(input()))
29th Oct 2020, 8:24 AM
Youssef Atta'i
Youssef Atta'i - avatar
29th Oct 2020, 11:11 AM
Nursultan2601 Nursultan
Nursultan2601 Nursultan - avatar
- 1
АЕЛ
29th Oct 2020, 11:11 AM
Nursultan2601 Nursultan
Nursultan2601 Nursultan - avatar