So I'm tryna make a calculator thing in python3 as a cool project but more focused on geometry stuff because I'm currently taking that. But when I go to adding the numbers, it isn't really adding them correctly. Here's my code
import math
print("If you haven't used this before, I would suggest typing ? in \n the first and second boxes to learn the UI.")
num1 = 0
num2 = 0
explain1 = "First, decide if you want area or parimater by typing a or p. Type ? in the next box for more info. "
explain2 = "For different shapes, just type the first letter of the shape in \n lowercase. For example, t would be triangle. Currently, I have \n rectangle and triangle, but I'll be adding more :)"
m1 = input("Area or Perimiter? ")
if m1 == "?":
print(explain1)
m2 = input("What shape? ")
if m2 == "?":
print(explain2)
n1 = input("What's your first number? ")
n2 = input("What's your second number? ")
#-----------------
def recper():
print("Your answer is:")
print()
#-----------------
if m1 == "p" and m2 == "r":
recper()
I was tryna add the numbers, but it just mashes them together