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!

Comments

  • ElianaC
    ElianaC Posts: 5,713 Udemy rank

    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

  • EliF1
    EliF1 Posts: 15 researcher rank

    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.

  • EliF1
    EliF1 Posts: 15 researcher rank

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

  • Skg786
    Skg786 Posts: 1 observer rank

    Hi, @ElianaC
    I am also facing the same issue when creating a simple program to calculate the Area of an rectangle using input() function in coding exercise generated by Ai tool.

    EOF error

  • OuissemBH
    OuissemBH Posts: 1 observer rank

    is there any solution?

  • ElianaC
    ElianaC Posts: 5,713 Udemy rank

    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