Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt

Published: 15 June 2017
on channel: Online Skills
7,825
57

#Importing Math Module
import math
#Declaring a variable called rad with value 5
rad = 5
#Putting in the formula for circumference
circ = math.pi * 2 * rad
#Now the formula for area of the circle
area = math.pi *rad ** 2
#Printing the results
print(circ, area)
OUTPUT:
31.41592653589793 78.53981633974483
Calculating Square Root for 100
#math.sqrt(100)
Output/Result:
10.0
#Calculating Square Root for 25
math.sqrt(25)
Output/Result:
5.0


On this page of the site you can watch the video online Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt with a duration of hours minute second in good quality, which was uploaded by the user Online Skills 15 June 2017, share the link with friends and acquaintances, this video has already been watched 7,825 times on youtube and it was liked by 57 viewers. Enjoy your viewing!