0
EOFError: EOF when reading a line:: PLEASE , INDICATE THE ERRORS..
x = input() def myfunc(): print("Python is " + x) myfunc()
5 odpowiedzi
+ 1
Did you give input when the input dialog pops up?
+ 1
The code you have posted here works just fine without errors.
+ 1
Ipang no entry here would just append an empty string and shouldn't cause an EOF error.
+ 1
ChaoticDawg
Sorry, I thought `myfunc` function was reading the global <x> 🙏
Nafi Rahat Rahman
We could not see a problem, complete version of the code is needed for further analysis.
Save the complete version of the code, and share the link in the Description ☝
https://www.sololearn.com/post/75089/?ref=app
0
ChaoticDawg When does an input() function causes an EOF error?