Accidentally created an infinite loop cant find it

A program that acts as a tv/remote. Has the ability to change channel, volume, turn power on and off (off ends the program). Also the tv starts in the off state so you have to turn it on in the beginning

You are viewing a single comment. View All

The problem is with this section of the code:

The program infinitely prints then menu while choice does not equal 0, but you are not updating choice within the while loop, so it ends up printing infinitely. Simply indent this line so it is in the while loop: choice = input("Choice: "). This will allow the variable to be changed each time the menu is printed.


@Bergreen Thank you