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.
3/31/2022 1:48:16 PMRoy Heintz
9 AnswersNew Answer
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.
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
When your code requires multiple inputs, you need to provide them in separate line in the same prompt.
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?
You need to give inputs like this (in case of two inputs) in the same prompt. 2 4
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
My closest correction to this was my creation of my webbased / python calculator https://code.sololearn.com/W7ITsQjn96yK/?ref=app
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…
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.