Hello, I'm still fairly new to Python3. I'm tyring to figure out the best way to rerun this code when a key ins't pushed correctly. Appreciate any help thanks.
#Code to exit or reginirate script
quittogen = input("""\nDo you want to quit or generate another creature?
Type q to quit or g to generate a new creature.""")
if str(quittogen) == "q" or str(quittogen) == "Q":
input("Thank you for using the Fantasy Creature Generator.")
elif str(quittogen) == "g" or str(quittogen) == "G":
print("Generating New Creature\n")
else:
if str(quittogen) != "q" or str(quittogen) != "g" or \
str(quittogen) != "Q" or str(quittogen) != "Q":
quittogen = input("""\nDo you want to quit or generate another
creature? Type q to quit or g to generate a new creature.""")
#Need a else code here to repeat the whole upper code
