title: Exiting a function using only basic programming
body: <p>I am working on my assignment, and I need to exit a function if the value returns True. It's a go fish game (you have all been a great help so far!) and I'm trying to figure out how to exit a function.</p>
  
  <pre><code>def TargetPlayer(player_number, pHands,sDeck):
  """User inputs which player they are choosing as the target player, returns
  target players number"""
      gameoverhands = GameOverHands(pHands)
      if gameoverhands == True:
          **missing code here**
          return gameoverhands
      else:
          ShowMessage("TURN: Player " + str(player_number) + ", it's your turn. ")
          if player_number == 0:
              ask = raw_input("Who do you want to ask? (1-3) ")
              while not ask.isdigit() or ask not in "123":
              etc ....
          return other_values
  </code></pre>
  
  <p>I guess a thing to ask would be can you have different return statements that only return that value if the if statement is executed? gameoverhands is basically saying that you have no cards in your hand and the game is over, so i need to somehow jump directly to the final function in the game, whereas the else statement will (hopefully) execute the rest of the code repeatedly until gameover occurs. is this possible with very basic programming? any input would be fantastic</p>