Does anyone have problems with input function? The app don't run the code and don't show the out put when I use a string in the input function. Like, when I write n = input (), everything is ok, when I add n = input ("Enter your name") code doesn't run.
Sololearn console is not a real console.
Input is only accepted once by the app, so getting multiple inputs needs some workaround.
And don't bother with input prompts
n = input("Your input instructions")
because they are displayed AFTER the input is submitted.
n = input()
and put instructions on comments at the beginning of your code so people would know what to type in.
It is weird, but maybe not exposing the console is a safety concern.
Oksana K. You wrote: when I add n = input ("Enter your name") code doesn't run.
Try n = input(“Enter your name: “)
You need to leave a space after “Enter your name: and before the closing quotes“. That way it has room to enter input.
So instead of “abc”, you will have “abc “.
Hope that makes sense 😀