I think input() function is not working

Every time iam getting same errror
Traceback (most recent call last): File “prog.py”, line 1, in s = raw_input() EOFError: EOF when reading a line

EOFError is raised when one of the built-in functions ( input() or raw_input() ) hits an end-of-file condition (EOF) without reading any data

try:
s= raw_input ()
except EOFError:
print “Error: EOF or empty input!”
break

try this and give me the link to code where you are getting this error