Write a program that validates user passwords. Make sure the user enters a valid password, and then ask the user to confirm by typing the valid password a second time. A valid password: * has...

1 answer below »

Write a program that validates user passwords. Make sure the user enters a valid password, and then ask the user to confirm by typing the valid password a second time.


A valid password:


* has 6 - 10 characters


* has at least one number


* has at least one capital letter


Please include a word doc with screen shots of the program as well as it running with the required componentsmentioned above.

Answered Same DayJul 18, 2021

Answer To: Write a program that validates user passwords. Make sure the user enters a valid password, and then...

Neha answered on Jul 18 2021
146 Votes
chance = 0
while chance < 2:
pwd = input("please enter password: ")
upper = 0
digit
= 0
if (len(pwd) <= 10 and len(pwd) >= 6):
for i in pwd:
# counting uppercase alphabets
if (i.isupper()):
upper+=1
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here