02-19-2024 06:28 AM
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!
02-20-2024 06:32 AM - edited 02-20-2024 07:02 AM
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
02-20-2024 07:07 AM
Hello, @ElianaC! Thank you for the advice!
I'll send an email to the support team.
02-20-2024 04:44 PM - edited 02-20-2024 04:45 PM
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.
02-21-2024 06:37 AM
Thank you very much for the answer! I've already tried it, but it didn't help too.
User | Likes Count |
---|---|
3 | |
3 | |
2 | |
2 | |
2 |
Ooops, it looks like you’re not a registered Udemy instructor. Want to become an instructor? We’d love to have you!
Become an instructor Already an instructor? Sign in
You can join the Instructor Club after you publish your first course. In the meantime, you’ll find plenty of help and advice in Studio U.