Input() function in Python doesn't work

Hello everyone!
I'm creating my first course now about Python Fundamentals.
And I've struggled on creating a coding exercise.
I've made up a simple program that helps my students to understand Input() function:
name = input()
print(name)
It works everywhere, But not on Udemy.
There is an error:
EOF when reading a line
Tell me, please, how to work with input() function on Udemy.
Thanks in advance!
Comments
-
Hi, @EliF1
happy to help! I recommend you send an email to the support team. Please make sure to include a screenshot of the error you are getting, copy and paste the exercise so the team can test it, and provide you with a workaround. To contact the team, please open the help center article here and click “Contact Us” on the right.I hope this helps!
Eliana
Udemy Community Moderator
1 -
You may also have to teach your students try/except EARLY ON because you are going to need to put your input function in a try/except and except on
EOFError
It is in the input function docs or search Stackoverflow for your problem.
1 -
Thank you very much for the answer! I've already tried it, but it didn't help too.
0 -
is there any solution?
0 -
Hi @OuissemBH
Are you experiencing issues while creating a coding exercise? If so, please reach out to Instructor Support and make sure to add the necessary information and the team will assist you. To contact the team, please open the help center article here and click “Contact Us” on the right.Let me know if you need anything else.
Eliana
Udemy Community Moderator
0