I don’t understand the output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don’t understand the output.

I don’t understand the output. It shows just a plain box and there’s nothing I can do. It doesn’t look like Pycharm. Can someone explain to me how to make my input? Here’s the code: https://code.sololearn.com/cEMWd2a2x7bP/?ref=app

24th Feb 2023, 7:52 AM
Harrison
Harrison - avatar
3 Answers
+ 3
SoloLearn Code Playground doesn't support interactive input/output. If your code requires interactive input/output then you can run it in your favourite editor (you mentioned pycharm) https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
24th Feb 2023, 8:57 AM
Ipang
0
You can use input() function. For example: N = input() Your input will be saved to N variable
24th Feb 2023, 8:02 AM
Jan J
Jan J - avatar
0
Works fine outside of SoloLearn. However, like someone already mentioned, Code Playground doesn't support interactive inputs. If you keep track of all of your inputs and enter them line by line, it works fine on here as well. Like: 1 1 1 5 Will jump into your addition function, add 1 + 1 and then, exits on the next loop as it should. Unfortunately, most languages don't get any love outside of web scripting languages on here lol but it has a lot more to do with the setup of each code with the editor's technically being ran based on a web-based design.
25th Feb 2023, 10:23 PM
Adrian
Adrian - avatar