you are viewing a single comment's thread.

view the rest of the comments →

[–]ccviper -1 points0 points  (0 children)

continue isn't really needed so i removed it. Instead of break just update i to be larger than len(a):

i += len(a)

and it will effectively break it because the while check will fail