def VerifyPasswordCLI(user):
 print 'Please enter your password:'
 pwd = getpass.getpass()
 result = VerifyPassword(user, pwd)
 print ('Passwords match' if result else 'No match')

def VerifyPasswordCLI ( user ) : print 'Please enter your password:' pwd = getpass . getpass ( ) result = VerifyPassword ( user , pwd ) print ( 'Passwords match' if result else 'No match' )
command-line interface to verifypassword .