l= float(input("Enter length: "))
w= float(input("Enter width: "))
r= float(input("Enter radius: "))
def perimeter():
return (l+w)*2
def circArea():
return (3.14)*(r**2)
def display():
p = perimeter()
print("Perimeter is: ", p)
a = circArea()
print("Area is: ", a)
def main():
display()
main()
I fixed the code, it works now. I realized what i was doing wrong with the returns.