while continue in LIST
hi all I try to do the example proposed in while loops lesson, ###An example use case of continue: An airline ticketing system needs to calculate the total cost for all tickets purchased. The tickets for children under the age of 1 are free. We can use a while loop to iterate through the list of passengers and calculate the total cost of their tickets. Here, the continue statement can be used to skip the children.### but I can't find the good code, if someone can help me I will be very thankful :D there is the code i made Intel know :( sorry for my English not very good ) coste_age =[20,2,58,1,89,56,1] x=len(coste_age) i=0 while i<x: if cost_age[i] <=1: continue print (cost_age[i]) i+=1 print (coste_age[i]) i+=1