Assignment Python
Assignment Python
area of square: 49
In [15]: pi=3.14
r=float(input("enter radius for the cone"))
l=float(input("enter the slant height of cone"))
TSA=pi*r*(l+r) #TSA=total surface area
print("area of cone:",TSA)
In [ ]: #perimeter of circle
In [25]: pi=3.14
r=float(input("enter radius of circle"))
peri=2*pi*r
print("perimeter of circle:",peri)
perimeter of square: 40