Sunday, October 12, 2014

Day 136

Python at CodeCademy. Worked on Python tutorial 4 of 13, A Day at the Supermarket: Lists + Functions! Worked on using lists as inputs to perform various operations on those lists.

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

There was no interaction for this code:

No comments:

Post a Comment