0

EOFError: EOF when reading a line:: PLEASE , INDICATE THE ERRORS..

x = input() def myfunc(): print("Python is " + x) myfunc()

28th Dec 2020, 6:44 AM
Nafi Rahat Rahman
5 odpowiedzi
+ 1
Did you give input when the input dialog pops up?
28th Dec 2020, 6:57 AM
Ipang
+ 1
The code you have posted here works just fine without errors.
28th Dec 2020, 6:57 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Ipang no entry here would just append an empty string and shouldn't cause an EOF error.
28th Dec 2020, 6:59 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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
28th Dec 2020, 7:05 AM
Ipang
0
ChaoticDawg When does an input() function causes an EOF error?
28th Dec 2020, 7:17 AM
Calvin Thomas
Calvin Thomas - avatar