I have been making a code to try to respond to the user input as a joke to send to a friend. But everytime I input a passcode it prints 'Access Denied.' And I'm using Spyder to code it.
Here is the code:
import time
print "Please enter your name to acess file."
userName=raw_input();
print "Searching Database..."
time.sleep(0.5)
print "Searching Database.."
time.sleep(0.5)
print "Searching Database."
time.sleep(0.5)
print "Searching Database.."
time.sleep(0.5)
print "Hello {} please input passcode.".format(userName)
passCode=raw_input();
if passCode != 0000:
print 'Access Denied'
else:
print 'Access Granted'