0
How FIX Ă EOF when reading the line error please
So , imagine i have two input like this : Age = int(input()) Name = str(input()) Error=eof when reading the line. How can i fix it ?please show me an exemple...
2 Answers
0
Supply all the inputs at once. When prompted, enter both inputs:
25<enter>
Bertha<submit>
0
This chapter shall provide you a hint on how to "catch" an exception (like EOFError).
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2441/?ref=app
P.S. Please add Python inside your post's tags for improved language context clarity.