I am trying to figure out how to repeat my question after my ending else statement.
My code looks like this at the moment
card = input("What card do you want to delete? ").strip().lower()
if card in monster_card:
del monster_card[card]
monster_card.pop(card)
monster_card.update(card)
elif delete == 'no':
print("Ok!")
else:
print("please enter 'yes' or 'no'")
If I type something other than 'yes' it prints off what it's meant to but then goes to the next question anyways, what I would like to happen is it prints what it's meant to then asks the question again and only continues with 'yes' or 'no'. Has anyone got any suggestions?