10
R1100
2y

So I wrote an algo in python3 for a challenge in codechef.com but it raised this exception !
If I put the input() built-in method in a try/catch , how do i know what the input was in order to pass the test case?

Comments
  • 0
    You could use something like this:
    try:
    >>>>x = int(input())
    except EOFError:
    >>>># Enter your code here.
  • 0
    @voidpy but if the exception in raised , there is no x to be used in my code
  • 2
    X = int(input(""))
Add Comment