Help with syntaxerror lists+fucntions


#1



A day at the market, exercise 4 lists + functions.

I'm trying to figure out how the syntax in the fourth line of code is off, I'm sure it's some simple thing that's not jumping out to me, and I do apologize for having to ask for some help again.


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


#2

Be sure to write this as a comparison, not an assignment.


#3

thanks, It also had a simple error on the line bellow it, thought that was a shortcut for +1 /shrug thanks for the assistance!


#4

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