Fizz_count help


getting error:
Oops, try again. fizz_count(['fizz', 'fizz', 'fIzZ', 'buzz', 'fizz', 8, 9, 'fizz', 'fIzZ', 8]) returned 1 instead of the correct answer: 4

def fizz_count(x):
    for item in x:
        if item=="fizz":
        return count


This needs to be after the loop, not inside it.



thank you so much


what do you mean inside the loop? sorry I'm a lil slow lol my code looks the same and I get it wrong it says answer is 1,0,4 its random xD idk please help me
can you show me please if its not to much to ask for thanks.


nvm its after lmao didn't read it correctly thanks anyways


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.