<gh_stars>1-10
print("Challenge 19: WAP program to remove and print every third number from a list of numbers until the list becomes empty.")

def rnums(int_list):
  
  position = 3 - 1 
  idx = 0
  len_list = (len(int_list))
  while len_list>0:
    idx = (position+idx)%len_list
    print(int_list.pop(idx))
    len_list -= 1
numbers = [10,20,30,40,50,60,70,80,90]
rnums(numbers)

print("Challenge 19: WAP program to remove and print every third number from a list of numbers until the list becomes empty.")

def rnums(int_list):
  
  position = 3 - 1 
  idx = 0
  len_list = (len(int_list))
  while len_list>0:
    idx = (position+idx)%len_list
    print(int_list.pop(idx))
    len_list -= 1
numbers = [10,20,30,40,50,60,70,80,90]
rnums(numbers)