Basically, I am trying to create a game. It's going well so far! However, I am trying to figure out how to make code go back. I am a beginner at python, so I think its something to do with def start():
and start():
- or something along those lines - but I'm not sure.
If you do not know what I am talking about, I am basically saying I want something like:
(1) if (variable) == (whatever)
(2) print ("Cool you win")
(4) (code to go back and repeat line 1)
(5) else:
(6) print ("You loose!")
(7) (code to go back and repeat line 1)
So, basically like a loop: How can I do this?