Challenge
Previously you solved the problem of calculating the circle area in Python for particular radius. Let's implement the function that will receive one parameter (radius) and print the circle area.
Tarea
Swipe to start coding
- Define function
circle_area
with one parameterR
. - Within the function body calculate a circle area using
math.pi
andR
(multiply π by the square of the radius), and assign the result to theS
variable.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 4. Capítulo 6
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 2.7
Challenge
Desliza para mostrar el menú
Previously you solved the problem of calculating the circle area in Python for particular radius. Let's implement the function that will receive one parameter (radius) and print the circle area.
Tarea
Swipe to start coding
- Define function
circle_area
with one parameterR
. - Within the function body calculate a circle area using
math.pi
andR
(multiply π by the square of the radius), and assign the result to theS
variable.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 2.7Sección 4. Capítulo 6
single