def sort(mylst):
    print mylst
    for i in range(1,len(mylst)):
        print "list" ,mylst[i]
        tobesorted=mylst[i]
        hole=i
        while hole>0 and mylst[hole-1] > tobesorted:
            mylst[hole]=mylst[hole-1]
            hole=hole-1
        mylst[hole]=tobesorted

if __name__=="__main__":   
    print "ok" 
    mylst=[10,2,4,6,11]    
    print sort(mylst)
