So I'm programming a litlle game and I'm trying to do something which I don't understand how to do. I've defined a function, and when none of the conditions with which the code works I want it to go back to an other line of code. But I don't understand how to. THis is a part of the code i"m working on
print "What's your favourite type of pokemon?"
fav_type = raw_input()
def chosen_pokemon():
if "fire" in fav_type:
print "So you like fire types? I'll give you a chimchar!"
elif "water" in fav_type:
print "So you like water types? I'll give you a piplup!"
elif "grass" in fav_type:
print "So you like grass types? I'll give you a turtwig!"
else:
print "sorry, you can only choose grass, water or fire"
start()
chosen_pokemon()
like I want the code to go back to "What's your favourite type of pokemon?" if it ends up by else, but how? Please be as clear as possible when answering because I've just started to learn programming and I know almost nothing about it