Python:
the password must have at least 8 characters with at least one lowercase, one upperc...
Computers and Technology, 14.11.2019 22:31, bheam12
Python:
the password must have at least 8 characters with at least one lowercase, one uppercase and one digit character. the program should repetitively ask user for a password till the entered password meets the specifications. then the program should ask the user to confirm the password; if it could not be confirmed then the whole process should start from the beginning.
# this program to set a password.
# this function returns true if the string s has
# no lowercase character otherwise returns false.
def nolowercase(s) :
upper_s = s. upper()
if s == upper_s :
return true
else :
return false
# this function returns true if the string s has
# no uppercase character otherwise returns false.
def nouppercase(s) :
lower_s = s. lower()
if s == lower_s :
return true
else :
return false
# this function returns true if the string s has
# no digit character otherwise returns false.
def nodigit(s) :
if s. count("0") > 0 :
return false
elif s. count("1") > 0 :
return false
elif s. count("2") > 0 :
return false
elif s. count("3") > 0 :
return false
elif s. count("4") > 0 :
return false
elif s. count("5") > 0 :
return false
elif s. count("6") > 0 :
return false
elif s. count("7") > 0 :
return false
elif s. count("8") > 0 :
return false
elif s. count("9") > 0 :
return false
else :
return true
# program to set a password.
# the password must have more than 8 characters
# with at least one uppercase, at least one lowercase
# and at least one digit character.
def main() :
print("this program will set your password.")
password_not_set = true
while password_not_set :
password = input("enter a password: ")
while : # complete the condition
print("password not allowed.")
print("must be longer than 8 characters with")
print("at least one lowercase, one uppercase and one digit.\n")
password = input("enter another password: ")
password_confirm = input("reenter to confirm the password.")
if : # complete the condition
print("password did not match, set another password.")
else :
# complete
print("your password has been set.")
main()
Answers: 2
Computers and Technology, 22.06.2019 16:00, raizagisselle1273
If a client wants to make minor edits, what should he/she use?
Answers: 3
Computers and Technology, 23.06.2019 09:30, blake2001
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
Computers and Technology, 24.06.2019 14:00, youcandoit13
In simple terms, how would you define a protocol?
Answers: 2
Computers and Technology, 24.06.2019 18:00, valdezavery9018
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
English, 09.11.2021 02:50
Advanced Placement (AP), 09.11.2021 03:00
Mathematics, 09.11.2021 03:00
Physics, 09.11.2021 03:00