+ 1
What is the EOFerror?
it happens when the program tries to read for second time the command num2=input()
2 Answers
+ 1
EOF means End Of File. It means you're trying to read when there's nothing left to be read.
- 1
try giving..
num2 = input().rstrip()
this will remove any special characters like return or newline character if any.



