I've been trying to repeat my code back to the first line in Python. I was making a simple calculator and once I run it, it works just fine when the process is over I can't use it again. I need to run it again to calculate again.
This is the code. I wanted it to go back to the start so that I don't have to run it again.
#Values
Question = input("Would you like to use our Simple Calculator Y/N : ")
#If Yes
if Question == "Y":
print("Sure")
#if Question == "N":
#print("Ok")
first_number = input("What is your first number:")
second_number = input("What is your second number:")
function = input("What calculation would you like perormed:")
first_number = int(first_number)
second_number = int(second_number)
if function == "+":
print(first_number+second_number)
if function == "-":
print(first_number-second_number)
if function == "*":
print(first_number*second_number)
if function == "/":
print(first_number/second_number)
if Question == "N":
print("Ok")