+ 2

Why can not I use 2 "input" in a code?  

I tried to create a calculator and it did not work because of an error just in the line where I used a second "input"  

26th Mar 2018, 1:43 PM
Krono
Krono - avatar
7 Answers
+ 3
When you enter data to programs within the playground, you must enter everything it requires. Before your code starts running, the prompt appears, after you dismiss it. The data is sent to a server where your program is run. Once your program finishes or is stopped due to too much usage of CPU, the output is displayed.
26th Mar 2018, 2:03 PM
John Wells
John Wells - avatar
+ 4
Move your float calls to the other side. n1 = float(input())
26th Mar 2018, 2:05 PM
John Wells
John Wells - avatar
+ 2
Probably due to a coding error, but without your code being linked here we can only guess.
26th Mar 2018, 1:45 PM
John Wells
John Wells - avatar
+ 1
Oh thank you very much :) I'm very new in all this (I've only been around for 2 days) I hope I did not bother you with my rookie nonsense postscript: I just did it right when he answered a second time
26th Mar 2018, 2:07 PM
Krono
Krono - avatar
+ 1
you need to enter your input in separate lines with enter key in between code doesn't have any issues
26th Mar 2018, 2:14 PM
kaliki chandu
kaliki chandu - avatar
0
26th Mar 2018, 1:53 PM
Krono
Krono - avatar
0
Yes, I have already corrected  
26th Mar 2018, 2:15 PM
Krono
Krono - avatar