#! /usr/bin/python

a = ['cat','window','defensestrate']
for x in a:
        print (x, len(x))

aa = ['Mary','hand','a','little','lamb']
for i in range(len(aa)):
        print (i, aa[i])
print (len(aa))


for n in range(2,10):
        for x in range(2,n):
                if n % x == 0:
                        print (n, "equals", x, "*", n//x)
                        break
        else:
                print(n, 'is a prime number')
