JustCaptain kod-buduschego
835a3dbfdce6940e318778c5ce0353de47e5de32
Перейти к файлу
Код
kod-buduschego Python 2025-20263.7. Модули и пакетыtask_1self_match.py
anc update c70a58f 8 октября 2026 г.
self_match.py
def circle_radius(diameter: int | float) -> float:
    radius: float = diameter / 2
    return radius


def circle_length(radius: float) -> float:
    length: float = 2 * 3.14 * radius
    return length


def triangle_area(base: int | float, heinght: int | float) -> float:
    area: float = (base * heinght) / 2
    return area