How could this while loop work if the needed input were not submitted?
#Dice Rolling Stimulator Beginning def decor(x): print(len(x) * "*") print(x) print(len(x) * "*") welcoming = "Welcome to this dazzling dice rolling stimulator!" decor(welcoming) answer = input("\nAre you ready to spin? Yes/No") answer.lower() #I have problem with the following lines. I tried to use the return function to avoid infinite loops but understood that is was not possible without a function, so I added one but it is unsatisfactory. The code is supposed to return the statement "Are you ready to spin?! Yes/No" if either "yes" or "no" was not submitted. Could use some help. Thanks beforehand. def ready(answer): while answer != "yes" or "no": return"\nAre you ready to spin?! Yes/No" print(ready(answer))