Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
calculate area of circle 1

calculate area of circle

June 22, 2022 by Anurag batra
import math
r = 50
a = r**2*math.pi
print(a)

Here is what the above code is Doing:
1. We import the math module.
2. We define a variable r and assign it the value 50.
3. We define a variable a and assign it the value of r squared times pi.
4. We print the value of a.

Categories Python Examples
Post navigation
python sorting array without inbuilt sort
seaborn boxplot multiple columns
© MyEduKit - 2022 . All Rights Reserved.