# Checks to see if the PIN entered by the user matches # the PIN we are given. Returns True if it does, false if it does not. def checkPassword(pinNumber): userPin= input("Enter the PIN to proceed>") if (pinNumber == userPin): return True else: return False #check the user pin before processing payment... if checkPassword(4567): print "Processing Payment! You are Rich!" else: print "Payment denied!"