I am very new to Python and I have written my first code to calculate the area of shapes. Each time I run it on Jupyter, it says
Type Error.
where I got things wrong? (I am using Python 3).
# Calculator code for the area of the shape
print("1 rectangle")
print ("2 squared")
print ("3 circle")
shape = input (">> ")
if shape ==1:
length = input ("What is the length of the rectangle?")
breadth = input ("What is the breadth of the rectangle?")
area = length * breadth *2
print ("the area of your rectangle", area)
elif shape == 2:
length = input ("what is the length of one side of the squared")
area = length *breadth
print ("the area of your square is ", area)
else shape ==3:
radius = input ("what is the radius of your circle")
area = radius *radius*3.14
print ("area of your circle is ", area)