+ 1

What is the EOFerror?

it happens when the program tries to read for second time the command num2=input()

3rd Sep 2016, 8:52 PM
Odisher 7
Odisher 7 - avatar
2 Answers
+ 1
EOF means End Of File. It means you're trying to read when there's nothing left to be read.
3rd Sep 2016, 8:59 PM
trueneu
trueneu - avatar
- 1
try giving.. num2 = input().rstrip() this will remove any special characters like return or newline character if any.
4th Sep 2016, 3:45 AM
arvindh
arvindh - avatar