length = len(data)
integrity = 1
if length >= 10:
for char in data:
if char.isdigit():
integrity += 1
if char.islower():
integrity += 1
if char.isupper():
integrity += 1
if char.isspace():
integrity += 1
if integrity >= 5:
return True
else:
return False
I would be grateful if someone would explain to me, why this code gets an assertion error on the third example "3rd example"
Created at: 2019/07/21 14:19; Updated at: 2019/08/28 10:54
The question is resolved.