Challenge: Find the Area of the Circle

Can we find the area of the circle using a built-in function?

Problem statement

For a given radius, find the area of the circle using the built-in functions.

Given data

Radius:

r=5

Expected output

Area of the circle = 78.5

Coding exercise

This problem is designed to check your understanding, so you are encouraged to solve it on your own. If you get completely stuck, refer to the next lesson which will explain the solution in detail.

Hint: Area of the circle= π×r2\pi \times r^2

Python

Get hands-on with 1200+ tech skills courses.