0

When I type in 30 it says it's incorrect, what am i doing wrong?

from datetime import datetime
now = datetime.now()
print '%s/%s/%s %s:%s:%s' % (now.year, now.month, now.day, now.hour, now.minute, now.second)
print raw_input('Welcome, first you need to confirm you can do math. Press ENTER to continue.')
answer = raw_input("What is 9 + 21?:")

if answer == 30:
    print 'Access granted.'
else:
    print 'Incorrect.'
juanpa.arrivillaga
  • 88,713
  • 10
  • 131
  • 172

0 Answers0