list = [1, 2, 3, 4, 5] while index < len(list): print(list[index]) index += 1 while num < 10: print(num) num += 1