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.
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 6
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.7
Challenge
Pyyhkäise näyttääksesi valikon
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.
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 2.7Osio 4. Luku 6
single