I need some help starting of this radio program
I need some help starting of this radio program What I need help on is getting the stations to change to the next station in the list if the user presses 3. class Radio: def __init__(self): self.stations=["STATIC","97.2", "99.6", "101.7", "105.3", "108.5"] self.stationStart=self.stations[0] def seekNext(self): self.stationsStart It starts at static but I want it to change every single one and then start over again. I tried something like this: stations=["STATIC","97.2", "99.6", "101.7", "105.3", "108.5"] a =input("enter 3 to seek next") while a !="0": if a =="3": print(stations[-1]) I only end up getting the last station cannot figure out how to list the rest of the stations. Using negative indices with lists operates on them in reverse order, so -1 is the last item, -2, second last and so ...