muhammad_nasif

TASK_09

Apr 15th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import math
  2.  
  3.  
  4. def area_circumference_generator(radius):
  5.     circumference = 2 * math.pi * radius
  6.     area = math.pi * radius * radius
  7.     result = (area, circumference)
  8.     return result
  9.  
  10.  
  11. value = input()
  12. value = float(value)
  13. res = area_circumference_generator(value)
  14. (res_area, res_circum) = res
  15. print("Area of the circle is " + str(res_area) + " and circumference is " + str(res_circum))
  16.  
Advertisement
Add Comment
Please, Sign In to add comment