Printing top n value with If-else condition using range() function in Python : I want to Print top 10 element from a list:

        top=10
        test=[1,1,1,2,3,4,5,6,7,8,9,10,11,12,13]
        for i in range(0,top):
            if test[i]==1:
                top=top+1
            else:
                print(test[i])

It is Printing:

        2,3,4,5,6,7,8
I am expecting:

        2,3,4,5,6,7,8,9,10,11
What i am missing