hello, i have to create a code that makes a user input a password that have at least 10 "symbols", have 1 uppercase , one lowercase , and one digit
i statrted coding 1 week and i still haven't grasp the fundamentals
can you help me please?
i statrted coding 1 week and i still haven't grasp the fundamentals

can you help me please?
x = input("please enter your password: ") userpassword = [x] for i in userpassword[0]: if len(userpassword[0]) < 10: raise Exception("password must have at least 10 characters") elif not userpassword[0].isdigit(): raise Exception("password must have at least 1 digit") elif not userpassword[0].islower(): raise Exception("password must have at least one lowercase letter in it ") elif not userpassword[0].isupper(): raise Exception("pass words must have at least one uppercase letter in it")
Output:please enter your password: cecerceercrecer5cerercercer
Traceback (most recent call last):
File "D:/Python/Medi/Medi.py", line 6, in <module>
raise Exception("password must have at least 1 digit")
Exception: password must have at least 1 digit
thank you! 