This is a main file in which I start an other.py script. The initial import works, it executes the other.py on line 1.
But when this has ran the other.py, it will ask input to to restart other.py once more. The 'no' answer is working, the 'yes' answer just keeps giving me the same prompt.
So the import is not working in my if statement. Any ideas please?
import other
while True:
prompt = input("Restart? Yes / No: ")
if prompt == "yes" or prompt == "Yes":
import other
elif prompt == "no" or prompt == "No":
print("Goodbye!")
break