Area of Circle pi* in Python

Area of Circle pi* in Python 

 import math

radius=float(input("Enter radius of the circle : "))

area=math.pi*radius*radius

print("area of circle",area)


Output :

Enter radius of the circle : 4

area of circle 50.26548245743669



0 comments:

Post a Comment

gurnoorsingh5974@gmail.com

Count Upper Case and Lower Case Word in a string (Python)

  Count Upper Case and Lower Case Word in a string     (Python) def string_test(s):     d={"UPPER_CASE":0, "LOWER_CASE":...