Bailey Castaneda

@OwenCastaneda (0)
OwenCastaneda
OwenCastaneda shared a Post
3 years ago
1
Accidentally created an infinite loop cant find it
Ask
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 th
SimTV
Python
Read full post
RECENT REPLIES
Bergreen
Bergreen 3 years ago
The problem is with this section of the code: while choice != "0": print \ (""" Critter Caretaker 0 - Turn Off TV 1 - Turn On TV 2 - Channel Up 3 - Channel Down 4 - Turn Volume Up 5 - Turn Volume Down 6 - Info """) choice = input("Choice: ") print() 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 wh
OwenCastaneda
OwenCastaneda shared a Post
2 years ago
1
Need help with betting on Blackjack program
Share
problem is in the main.py and in class BJPlayer. I was trying to create a way to bet but it gives the error 'BJPlayer' has no attribute 'bankroll'
Blackjack_Challenges
Python
Read full post