#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
En esta página del sitio puede ver el video en línea Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt de Duración hora minuto segunda en buena calidad , que subió el usuario Online Skills 15 junio 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 7,825 veces y le gustó 57 a los espectadores. Disfruta viendo!