Write a programExercise 2/4Basic10 XP

Functions from your own module

Task

Next to the program there is a module geometria.py with the functions obvod_kruhu(r) and obsah_kruhu(r). The program reads the radius of a circle (a decimal number), calculates the circumference and the area with the module's functions and prints them rounded with round to 2 decimal places:

Obvod: 31.42
Obsah: 78.54

(for radius 5). Do not write the functions again - import them.

Examples

  • Input

    5

    Expected output

    Obvod: 31.42
    Obsah: 78.54

Rules

  • Import the geometria module.

  • Calculate the circumference and area with the functions of the geometria module.

After you submit, 4 hidden tests will also check your solution: radius 1, a decimal radius, radius 0, the results really come from the module.

Python starts the first time you run code.

Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.

Input (stdin)

Each line = one call to input().

Output

Hints

Try it yourself first. Each hint reveals a little more - and lowers the reward a little.

Signed out, hints are free - but no XP is awarded either.

Solution

The solution unlocks after the last hint.