0
How do I make multiple inputs?
I tried to make a simple story with a few input from the user. But everytime I run it the first input works properly but from teh second it says "EOF when reading a line". Can someone help me please? https://code.sololearn.com/cc9ELXCYUh3H/?ref=app
11 Respostas
+ 5
Gabi
I don't guess that it will work in sololearn playground! You can't use them seperately but ig you can use them in one input!
Like you can try - input().split(separator, maxsplit)
+ 1
Gabi its working perfectly you just have to give the inputs in onetime on sololearn on different lines like example :-
Name
Age
Like that and EOF error occurs mostly due to parenthesis so check that also sometimes ....
+ 1
print("Who are you?")
name = input()
print(name + "...")
print("Intresting")
print("How old are you?")
age = input ()
print("So you are " + age)
print("I will sell this information")
Run...
Give
Name
Age
0
This code is not working properly in SoloLearn. You must seperate inputs with a new line. If you execute it on IDLE or somewhere else It will work.
0
you can do this for example
#Input 1 : Enter number
#Input 2 : Enter your name
Or if you really have multiple input like a game with scoreboard, then you can just comment "Copy and Use to a different IDE for multiple input", like that
0
Thank you!
0
Just make all variable in lower case
https://code.sololearn.com/csM6YZfbky4V/?ref=app
0
H
0
Can anyone tell me how can I take inputs from user in c# in a program
It is creating a problem for me since I can't take input after execution