Worksheet - 1.3: Name: Gurman Singh Section: 705-A UID: 20BCS5111
Worksheet - 1.3: Name: Gurman Singh Section: 705-A UID: 20BCS5111
Question 1:
Write a python program to calculate the area of 10 different circles. Given the
pie = 22/7 and radius of the circles entered by the user using Simple Function,
Parameterized Function, Return Type with function and return type with
parameterized Functions.
CODE:
def area_of_circle(radius):
a = 3.14 * radius * radius
return a
Question 2:
CODE:
def table(n):
for i in range(1, 11):
print(n, " x ",i ," = ", n*i)