Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Menu():
- print('*****WELCOME TO OUR WEBSITE**** \n')
- print('1. Check Password')
- print('2.Generate Passwod ')
- print('3. quit')
- option = int(input('Enter the number of the function 1,2 or 3: '))
- if option == 1:
- CheckPassword()
- elif option == 2:
- GeneratePassword()
- elif option == 3:
- End()
- def CheckPassword():
- password1 = input('please enter your password')
- attempts = 0
- while attempts != 3:
- password2= input('please enter your password again: \n')
- attempts = attempts + 1
- if password1 == password2:
- print('access granted')
- attempts = 3
- else:
- print('password incorrect')
- print('you have used', attempts,'attemptsMenu')
- def End():
- print('\n ****Thanks for using our service****')
- Menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement