import getpass def pass_entry: p = getpass.getpass(prompt='What is your favorite color? ') if p.lower() == 'blue': print 'Right. Off you go.' check = 1 else: print 'Auuuuugh!' def check_valid: if check = 1: print "Hello, Alex" pass_entry() check_valid()
I have been having trouble with python lately, mainly due to the fact that I am out of practice. I started in android development so that is why I have been away from python. Any suggestions?