$python main.py
Enter a number: Traceback (most recent call last):
  File "main.py", line 4, in <module>
    inp = raw_input("Enter a number: ")
EOFError: EOF when reading a line
            Asked
            
        
        
            Active
            
        
            Viewed 81 times
        
    0
            
            
        
        GoodDeeds
        
- 7,956
 - 5
 - 34
 - 61
 
        jashbhaveshshah
        
- 1
 - 3
 
- 
                    End of File Error – InLaw Mar 08 '20 at 17:02
 - 
                    What are you entering? – ngShravil.py Mar 08 '20 at 17:03
 - 
                    For a UNIX text file to be valid, every line needs to terminated by a newline, including the last one. That's different from Windows, where the last line doesn't require a newline. – Charles Duffy Mar 08 '20 at 17:04
 - 
                    That said, I wonder if you're hiding details (like the left hand side of a pipe, or redirection from a file). An interactive terminal won't provide an EOF unless you tell it to, as by typing ctrl-d – Charles Duffy Mar 08 '20 at 17:06
 - 
                    https://stackoverflow.com/questions/12547683/python-3-eof-when-reading-a-line-sublime-text-2-is-angry could you go through this? – ngShravil.py Mar 08 '20 at 17:07