Input() function in Python doesn't work

cancel
Showing results for 
Search instead for 
Did you mean: 

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: 

Error
Error details
EOF when reading a line


Tell me, please, how to work with input() function on Udemy.
Thanks in advance!

4 Replies
ElianaC
Community Moderator
Community Moderator

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 

 

Hello, @ElianaC! Thank you for the advice!
I'll send an email to the support team.

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. 

Thank you very much for the answer! I've already tried it, but it didn't help too.

cancel
Showing results for 
Search instead for 
Did you mean: 
First-time course creation
Decided to take the plunge and create your own Udemy course? Check out some incredible Udemy success stories, and get inspired by your fellow instructors!
Top Liked Authors