Jump to content

1) this should be in the programming subforum
2) please submit code as code formatted in the text part of the input, not a screenshot, it is much easier to read
3) a title other than "help" might draw people to your issue more

 

4) You have put the check for if the response to "do you want to play" inside of the logic for when they enter "no". this means that you only check if they say yes once you confirm they say no. in other words:
What you did:
 

response = "string"

# check if they responded no
if (response == "no"):
  # check if they responded yes, but we already know they said no, so this will fail
  if (response == "yes"):
    do stuff

 

What you want:

response = "string"

if (response == "no"):
  logic for when they say no
elif (response == "yes":
  logic to continue the game

 

Main Rig: R9 5950X @ PBO, RTX 3090, 64 GB DDR4 3666, InWin 101, Full Hardline Watercooling

Server: R7 1700X @ 4.0 GHz, GTX 1080 Ti, 32GB DDR4 3000, Cooler Master NR200P, Full Soft Watercooling

LAN Rig: R5 3600X @ PBO, RTX 2070, 32 GB DDR4 3200, Dan Case A4-SFV V4, 120mm AIO for the CPU

HTPC: i7-7700K @ 4.6 GHz, GTX 1050 Ti, 16 GB DDR4 3200, AliExpress K39, IS-47K Cooler

Router: R3 2200G @ stock, 4GB DDR4 2400, what are cases, stock cooler
 

I don't have a problem...

Link to comment
https://linustechtips.com/topic/1049207-help/#findComment-12434442
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×