- 1

Why do I get an EOF error in this line of code? (in message)

forename = str(input("Please tell us your first name "))

28th Jun 2021, 12:07 PM
Findlay Wright
Findlay Wright - avatar
5 ответов
0
In case, If you don't give any input.. otherwise works fine
28th Jun 2021, 12:10 PM
Jayakrishna 🇮🇳
0
Could you explain? How do I give it input?
28th Jun 2021, 12:13 PM
Findlay Wright
Findlay Wright - avatar
0
Your code is fine. Usually EOFerror happens when input was missed. SoloLearn input may not be clear to beginners at first. Please use for the full work of the IDE
28th Jun 2021, 12:17 PM
SammE
SammE - avatar
0
forename = input("Please tell us your first name ") or "nobody " str() is useless
28th Jun 2021, 12:22 PM
Oma Falk
Oma Falk - avatar
0
forename = input("Please tell us your first name : ") print(forename) #Findlay Wright run this code and on pop-up box , type name and hit submit.
28th Jun 2021, 12:26 PM
Jayakrishna 🇮🇳