def rightTriangle ():

length = float (input ("What is the length of the triangle you want to measure? "))

width = float (input ("What is the width of the triangle you want to measure? "))

area = 0.5 * length * width

perimeter = float ((((length * length) + (width * width)) ** 0.5) + length + width)

return area

return perimeter

def equalateralTriangle ():

length = float (input ("What is the length of one of the sides of the triangle? "))

area = 5 * length (length * 3**.5)

perimeter = length * 3

return area

return perimeter

def parallelgoram ():

length = float (input ("What is the length of a side of the parallelogram you want to measure? "))

width = float (input ("What is the width of the parallelgoram you want to measure? "))

area = length * width

perimeter = 2 * (length + width)

return area

return perimeter

def rectangle ():

length = float (input("What is the length of the rectangle you want to measure? "))

width = float (input ("What is the width of the rectangle you want to measure? "))

area = length * width

perimeter = 2 * (length + width)

return area

return perimeter

def square ():

length = float (input("What is the length of one of the sides you want to measure? "))

area = length * length

perimeter = 4 * length

return area

return perimeter

def circle ():

radius = float(input("What is the radius of the triangle you want to measure? "))

area = (radius * radius) * 3.14159

perimeter = 2 * 3.14159 * radius

return area

return perimeter

def Main ():

response = input ("The avaiable shapes for finding area and perimeter are: \n (1) Right Triangle \n (2) Equalateral Triangle \n (3) Parallelogram \n (4) Rectangle \n (5) Square \n (6) Circle \nWhich shape do you want to choose? ")

if response == “1”:

area = rightTriangle ()

print ("The area of your right triangle is " + str(area) + “. \n” "The perimeter of your right triangle is " + str(perimeter) + ". ")

elif response == “2”:

area = equalateralTriangle ()

print ("The area for your equalateral triangle is " + str(area) + “. \n” + "The perimeter for your equalateral triangle is " + str(perimeter) + ". ")

elif response == “3”:

area = parallelgoram ()

print ("The area for your parallelogram is " + str(area) + “. \n” + "The perimeter for your parallelogram is " + str(perimeter) + ". ")

elif response == “4”:

area = rectangle ()

print ("The area for your rectangle is " + str(area) + “. \n” "The area for your rectangle is " + str(perimeter) + ". ")

elif response == “5”:

area = square ()

print ("The area for your square is " + str(area) + “. \n” + "The perimeter for your square is " + str(perimeter) + ". ")

elif response == “6”:

area = circle ()

print ("The area for your circle is " + str(area) + “. \n” + ("The perimeter for your circle is " + str(perimeter) + “. “)

else:

print (” You made an incorrect desicion. Please choose the options based through the numbers 1-6.”)

Main ()

again = input(“Do you want to find the area or perimeter of another shape?”)

if again == “yes” or “Yes”:

Main ()

length = 0 ; width = 0 ; area = 0 ; radius = 0 ; perimeter = 0

print (“This is a program designed to ease all life’s troubles with solving the area and perimeter of multiple shapes. For this program, enter the number beside the shape you want to find the area an and the perimeter of. \n”)

Main ()