This question already has an answer here:
The Code isn’t at all complete I’m just trying to figure out why no matter what is input it always reverts to the Greek_Gods() if statement and def function
The goal is to have a large category or ancient Deities. The goal is to organize he categories in religion within individual def functions and depending on what religion they’re interested in there will be varioud gods in that religion to view info on so I was wanting to add an input() function to chose and from there narrow down the choices within that ever their input is
def Greek_Gods():
print('What Greek god would you like to know more about?')
def Norse_Gods():
print('What Norse god would you like to know more about?')
def Hindu_Gods():
print('What Hindu god would you like to know more about?')
def Egyptian_Gods():
print('What Egyption god would you like to know more about?')
print('What religion would you like to know more about')
religion = input()
if religion == 'Greek' or 'greek':
Greek_Gods()
elif religion == 'Norse':
Norse_Gods()
elif religion == 'Hindu' or 'hindu’:
Hindu_Gods()
elif religion == 'Egyptian' or 'egyptian':
Egyptian_Gods()
Aucun commentaire:
Enregistrer un commentaire