A Day at the Supermarket Lists & Functions help


#1

Hey guys! I've been stuck on this for the past 2 days and I've tried a lot of things. Not sure what I'm doing wrong. I have a feeling it might have to do with defining the initial list.


#2

a function ends the moment a return keyword is reached, if the return keyword is reached in a loop, the loop will break in order for your function to end

you want to increase the counter inside the loop, then after the loop return the number of occurrence of fizz inside your list


#3

Didn't get what you were saying at first but solved it :smiley: thanks!


#4

i do this on purpose, i still want you to fit the pieces together to improve your understanding :slight_smile:

there is a big difference between helping and providing the solution :wink:


#5

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