so i am trying to build a calculator that can do basic math but a problem that i have is that i cant figure out how to ask the user for input and with that input ask for the certain amount of numbers (based on the users input).

i didnt really explain it well but thats all i can do

Below is my code:

math1 = raw_input("Please type the symbol of the math action you wish to do: ")

if action == “+” :

num1 = float(input("Give the first number: "))

num2 = float(input("Give the second number: "))

print (num1 + num2)

if action == “*” :

num1 = float(input("Give the first number: "))

num2 = float(input("Give the second number: "))

print (num1 * num2)

if action == “/” :

num1 = (input("Give the first number: "))

num2 = (input("Give the second number: "))

print (num1 / num2)

if action == “-” :

num1 = float(input("Give the first number: "))

num2 = float(input("Give the second number: "))

print (num1 - num2)

exit1 = raw_input("Type ‘e’ or if you wish to exit: ")