for num in [1, 2, 3, 4, 5]: if num < 4: continue print num, num = 0 while num<5: num = num + 1 if num < 4: continue print num,