I tried to make a game like Fortnite, so I picked out a mode from it. One shot looked quite easy to make as if you got hit once, you were dead, hence the name. It isn't perfect. If you have any suggestions, feel free to tell me.
your if statements probably don't work as intended, they should be more like (below) (if it isn't like below, then the statement will always be true, hence you always die):
if risk == 1 or risk == 3 or risk == 4 etc..: