Mater Dei Python Code
Monday, March 3, 2014
Supermarket 4/13
# Write your function below!
def fizz_count(x):
count = 0
for item in x:
if item == "fizz":
count = count + 1
return count
fizz_count("fizz","cat","fizz")
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment