+ 1

Doesn't work out. Why?

print(float(input('enter a number:')) + float (input('enter another number:')))

15th Nov 2019, 6:57 AM
Takrim Ahmed
Takrim Ahmed - avatar
4 Answers
+ 5
Actually it works. SoloLearn has strict rules for inputing. You have to enter all inputs at the beginning of running code(here I mean both numbers) and don't forget you should separate inputs by a line-break(enter)
15th Nov 2019, 7:06 AM
ΛM!N
ΛM!N - avatar
+ 2
I actually find that strange that you have to enter all your inputs at the beginning and it doesn't give the input prompts so you don't know what to input unless you read the code first and find them all. For my coding practice, since I like to do it on my phone, I installed "Pydroid3" from the google play store. It's way easier to test code in.
15th Nov 2019, 1:44 PM
ZIAMI
ZIAMI - avatar
+ 1
Thanks
15th Nov 2019, 7:47 AM
Takrim Ahmed
Takrim Ahmed - avatar
0
Yeah for multiple codes not showing the input prompt for each code is very difficult to do
15th Nov 2019, 1:58 PM
Takrim Ahmed
Takrim Ahmed - avatar