15
Abd Elhaq
https://hakoudev.web.app
Last seen 2 months ago
Member for 4 years, 1 month, 22 days
Difficulty Normal
I write code.
that's much better:
def checkio(a):
if len(set(a)) >= 3:
if not 'password' in a.lower():
if 6 < len(a) <= 9:
return any(map(str.isdigit, a)) and any(map(str.isalpha, a))
else:
return len(a) > 9
else:
return
More
we loop over words and append it as a key to our dictionary.
we lowercase the text and transform it to a list by split() than we count how many times words showed up in the text by count() and append it as value to our dictionary.
More