A Day at the supermarket


#1

def fizz_count(x):
count = 0
for all in x:
if all == "fizz":
count = count + 1
return count
fizz_count("fizz", "fish", "fizz", "spark", "fizz", "fizz")

Why does this return NONE and passes me to the next lesson??? It says its correct but i dont get it, isnt it supposed to give me an answer like the number 4.


#2

A function call execute the function, so you place the function call outside/after the function


#4

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