Mar-15-2023, 07:10 PM
(Mar-15-2023, 07:00 PM)deanhystad Wrote: Please use python tags when you post your code. I saw you tried. Next time review before hitting the post button.
Since you decided to ignore any advice, what is the purpose of offering more? Break your code into functions as advised, and the error will be obvious.
You are using the wrong variable.
while True: again = input("play again? enter y to play again or n to quit") if again == ("n"): breakThe outer game loop runs until "play" != "y", but here you use the variable "again".
Sorry about that I didn't see your previous post I didn't mean to ignore it but thanks for your time and help