Reducing range(len(x)) in hw1.py

We can just use
    for a in p:
        print(a)
and avoid using
 for i in range(len(p)):
       print p[i]