- 1

Why is Code Playground Broken?

I've recently come to the conclusion that the code playground on this website is broken. Whenever others or I upload our code that requires an input with python the code is run all together and not breaking like it should. So, when code asks for multiple inputs the user either has no idea what they're supposed to do or when they do it comes back as an error due to multiple input() functions. This breaks the illusion of said code and possibly causes more problems for the developer and user in the end. Is anyone else running into this problem or is it just me? Please Help! I don't know if i'm doing something wrong.

31st Mar 2022, 1:48 PM
Roy Heintz
Roy Heintz - avatar
9 Answers
+ 2
Roy Heintz Sololearn support multiple inputs together. You can't take input one after another. When Sololearn ask for input then message comes to enter inputs in separate line.
31st Mar 2022, 2:12 PM
AĶ¢J
AĶ¢J - avatar
+ 2
Roy Heintz as far as coding in inputs they should be explained upfront as to what the creator's intent is and rather the input should be with a space or a comma or on separate lines. This code as an example you can enter on ongoing amount of numbers upfront ofcourse .. https://code.sololearn.com/c7XHk1890Enb/?ref=app all separated by a space 2 13 45 64 53 27 18 76 22 Here is another example whereas each input is assigned to a variable example the first 10 and then you input and assignment the next 5 https://code.sololearn.com/cbfuhxXHs6qk/?ref=app
31st Mar 2022, 2:55 PM
BroFar
BroFar - avatar
+ 1
When your code requires multiple inputs, you need to provide them in separate line in the same prompt.
31st Mar 2022, 2:10 PM
Adil
Adil - avatar
+ 1
Ok. so, I'm a little confused and for argument's sake i just started learning about this about 3 weeks ago. can i get an example of how this would look?
31st Mar 2022, 2:22 PM
Roy Heintz
Roy Heintz - avatar
+ 1
You need to give inputs like this (in case of two inputs) in the same prompt. 2 4
31st Mar 2022, 2:23 PM
Adil
Adil - avatar
+ 1
Roy Heintz If you takes two inputs then take like this: 10 20 Then enter If you want to take number of elements and then elements then like this: 5 #this is number of elements #elements 1 2 3 4 5
31st Mar 2022, 2:48 PM
AĶ¢J
AĶ¢J - avatar
+ 1
My closest correction to this was my creation of my webbased / python calculator https://code.sololearn.com/W7ITsQjn96yK/?ref=app
31st Mar 2022, 3:36 PM
BroFar
BroFar - avatar
+ 1
The user needs to know what inputs will be needed before running the program. (They need to read/study the code first.) When the input prompt pops up, the user, then, enters each input followed by the return key. Not interactiveā€¦or user friendlyā€¦
1st Apr 2022, 10:17 AM
Julia Kim
0
What if the code is set you to have times where you are prompted to input with the way this playground is set up if runs all the code and a person would have to blindly put in their inputs this way.
31st Mar 2022, 3:29 PM
Roy Heintz
Roy Heintz - avatar