So basically I have a homework which asks me to create a program that needs to solve cuadratic ecuations and that’s pretty much it, however something technical I want to do just for fun is for the program to be able to repeat itself if the user needs it.
The thing is: at the start of the code I type def main():
And in the end of the code I put this:
Repeat = input(“Would you like to do another excercise? “)
If Repeat == “yes”:
main()
Else:
print(“Thank you!”)
And for SOME REASON when I put yes it only shows Thank you! And closes when I watched 2 different yt vids that did work with the def thingy…
Help please 🥺🙏
(The homework is done this is just for fun and to learn, I just can’t find the solution)
Btw this is #python I’m using vscode…