Â
In this we are going to see a basic example of a Function that Accepts Radius and Calculates the Area of a Circle and the Circumference - Type 4 of Functions in Python Programming Language.
def circle(r):
area = 3.14 * r * r
circumference = 2 * 3.14 * r
return area, circumference
x = circle(5)
print("Area : ", x[0])
print("Circumference : ", x[1])
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP