Answers for "python password script"

0

python password script

import sys

def main():

	print '\nPassword Request Program v.01\n'
	
	password = 'abcd'
	user_input = raw_input('Please Enter Password: ')
	
	if user_input != password:
		sys.exit('Incorrect Password, terminating... \n')
		
	print 'User is logged in!\n'
	
if __name__ == "__main__":
	main()
Posted by: Guest on October-17-2020

Code answers related to "python password script"

Python Answers by Framework

Browse Popular Code Answers by Language