Hello! I was writing some python for IST (we were asked to write a flowchart as pseudocode, but I wrote it strait into python, the teacher was quit impressed), and I am getting an error that reads
Enter a number between 1 and 10Traceback (most recent call last): File "/Users/swaglord/Desktop/adding code", line 1, in <module> one_ten = input("Enter a number between 1 and 10")EOFError: EOF when reading a line
whenever I try to get user input. The code I am using is:
dob = input("What is your birthdate?") date = time.time() if date > dob: print ("Incorrect Birth Date") else: date_difference = dob - date print ("Your age is", date_difference)
The editor i'm using (if that makes any difference) is Sublime Text 2. Please help me in telling me what went wrong in my coding (I am still a beginner to python), I would really like to see this be working in good order.