0
number = input("Enter a non-negative integer: ")

Whenever I try to run this, I get en EOF error. I'm using Sublime Text 2 and Python 2.6.1. The funny thing is that when I ran this in my terminal, it worked fine.

Markus Unterwaditzer
  • 7,992
  • 32
  • 60
spoonless
  • 1
  • 3
  • Can you post the full error? – thegrinner Feb 08 '13 at 13:14
  • If its looking for the EOF character to end you string instead of new line, you can pass that by using CTRL+D. – Hoopdady Feb 08 '13 at 13:17
  • Is it not better to use ``number = int(raw_input("Enter.."))`` as ``input`` == ``eval(raw_input(prompt))`` - it's something that's always confused me as to why people use ``input``. – sotapme Feb 08 '13 at 13:29

0 Answers0