I'm wanting to create a while loop that asks the user if he wants to run the program or not... very basic... I know. I was wanting the prompt to ask the user to input "Y" or "y" to have the program run. Like this:
programStart = str(input("Please press 'y' or 'Y' to start the program"))
while programStart == "Y" or programStart == "y":
#program runs
programStart = str(input("Please press 'y' or 'Y' to restart the program"))
But it sends me an error message. why is this sending an error message not recognizing the users input??
ps: this while loop works with integers. (if I have the user press 1 to start the program.)