Input fuction not working? EOFError: EOF when reading a line

Hi i seem to be having some issues when using the input fuction?
Ill use this code as a example.
x = input(‘Enter your name:’)
print('Hello, ’ + x)
input(“Press enter to exit”)
exit()

When i run the code on anything other than the codeacedemy website it works but when i run it here i get the error (EOF when reading a line)
Am i doing something wrong?

Most of the Codecademy workspaces or the Codecademy lessons and projects don’t have the ability to do user input (nor do exit),
so trying to use input or exit may result in an error here.

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.