I’m new to SPOJ and am a bit confused. Every time I submit my answer for the first challenge I get a run time error

Here is my code:

while 1 :
a = int(raw_input())
if a == 42:
break;
print (a)

Any help would be hugely appreciated

  • created

    Oct '17
  • last reply

    Oct '17
  • 1

    reply

  • 976

    views

  • 2

    users

  • 2

    links