Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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 XXXXXXXXXXcharacters

* 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 Day Jul 18, 2021

Solution

Neha answered on Jul 18 2021
147 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