8
Morph
3 16
279/ 345
Last seen 5 years ago
Member for 5 years, 6 months, 23 days
Difficulty Normal
Created a forum post "Only returning 1?"
Not sure why, but my count is only come back as 1: >def count_words(text: str, words: set) -> int
Commented a forum post "Failing on Hi?!?!" created by Morph
Thanks for the help, It was still failing so I added a break once the count == 3: > count
Liked a comment created by Phil15 for forum post "Failing on Hi?!?!"
    def checkio(words: str) -> bool:
    count = 0
    wordlist = words.split()
    for word in word
Created a forum post "Failing on Hi?!?!"
I'm not sure why, but I'm getting the wrong out put when my function is applied to "hi" in the three
Liked a comment created by Merzix for forum post "Not sure what I'm doing wrong"
    if len(array) < 0:
        return 0
lenght of list can't be negative so you may only need check