LearnPy Hub
← Classes & Objects problems
Easy

Circle Class

Write a Circle class storing a radius, with area() and circumference() using math.pi. Print both with 2 decimals on one line.

Input

One number.

Output

Two numbers.

Sample 1

Input
1
Output
3.14 6.28

Sample 2

Input
2.5
Output
19.63 15.71
solution.py
Output appears here
Circle Class · Python practice problem · LearnPy Hub