+ 1
Please help me in python.
I don't know why this code isn't returning True. https://code.sololearn.com/cyKQz3rVQo83/?ref=app
5 Antworten
+ 4
because password[i] can't be in both in the string of letters and the string of numbers.
+ 2
Samad Sama It's pure logic. A character can't be a letter and a number at the same time.
+ 1
LONGTIE, is there any special reason behind this or it just a rule or something? Can you tell me?
+ 1
Change and to or in if condition. Then you will get True.
As per your code, you are expecting both character and digits in same index - password [i] and this is impossible...!!!
"hope this helps...
0
Diego, Got it
And Thank you