#4- Lists and Function


def fizz_count(x):
Indent 4 spaces count = 0
Indent 4 spaces for item in x: #This line is VERY IMPORTANT
Indent 8 spaces if item == 'fizz':
Indent 12 spaces count = count + 1
Indent 4 spaces return count
x = ["fuzz", "buzz", "fizz", "fizzy"]


On your post it says indent 8 spaces at the return, while it should be 4 spaces as in the picture. Because it shouldn't run inside the for loop, but after it.


I have seen the error in my ways and corrected it. Thank you for pointing that out.