for the problem: https://www.spoj.com/problems/TEST/ used python for solving, but not giving output, and giving error, please help
try: while True: line = raw_input() if int(line) != 42: print(line) else: break # process line except EOFError: pass
raw_input() ------> python ver. <= 2.99 input() -------> python ver. >= 3.00