7 AnswersNew Answer
1. You have not checked whether there are both capitalized and non-capitalized characters. 2. For improving efficiency, learn RegEx. https://www.sololearn.com/learn/9704/?ref=app
Thank you Gordon for the answer, for the 1. I made the code with the challenge in learncode where capitalize letters are not a condition =) Thanks for RegEx I will learn it!
Ur indentation is off. The code doesn't work.
The code I just add for password validate, it works on my laptop but I don't know if it's efficient
Thanks thoq I fixed it
You are probably better learning regular expressions for a task like this. Im still a python novice but this is my example using some regex. https://code.sololearn.com/cvgLH0cp2Wks/?ref=app