

def mystery(word):
    s = 0
    x = len(word)
    print "len(word) is ", x
    y = range(len(word))
    print "range(len(word))", y
    print type(y)
    for i in range(len(word)):
        print "i is ", i, " word[i] is ", word[i]
        if word[i] == 'c':
            s += 1
    return s


print mystery("chicken")









def mystery2(word):
    answer = ""
    for i in range(1,len(word)):
        if word[i-1] == 'c':
            answer = answer + word[i]
    return answer
print range(7)
print range(1,7)
print mystery2("chicken")
print mystery2("chickenchickenc")






x = ":".join(["a", "b", "c"])
print x
print type(x)

# this doesn't work
# y = ":".join([1,3,2])
# print y
