1nums = [7,3,-1,8,-9]
2positive_nums = []
3
4for num in nums:
5 if num < 0: #skips to the next iteration
6 continue
7 positive_nums.append(num)
8
9print(positive_nums) # 7,3,8
1def skip_down(num, skip):
2 count = 0
3 lst = [0]
4 while count< num:
5 count = count + skip
6 lst.append(count)
7 return lst
8print(skip_down(10, 3))