I've just started a pretty basic program in PyScripter using python3. I've asked the user to input a number and my program caculates the number. Thats all running well but I wondered if anyone know how to on python as the user if they want the program to run again or evit. If so how do I run the caculator again and how do I exit at there request. I.E "would you like to run the program again type yes or no* if yes how do I execute the same code again if no how to stop it from executing. Thanks fro your help.
Number = int(input("Number Required"))
if Number >= 1 and Number<=50:
add =(Number * 5)
print("The Number amount it", add)
elif Number <= 80 and Number >= 50:
add =(Number * 4)
print("The Number amount it", add)
elif Number <= 100 and Number >= 80:
add =(Number * 2.5)
print("The Number amount it", add)
run = input("would you like to check again type yes or no")