<filename>python/8kyu/collatz_conjecture.py
"""Kata url: https://www.codewars.com/kata/577a6e90d48e51c55e000217."""


def hotpo(n: int) -> int:
    c: int = 0
    while n != 1:
        n = (3 * n + 1) if n % 2 else n // 2
        c += 1

    return c

<filename>python/8kyu/collatz_conjecture.py
"""Kata url: https://www.codewars.com/kata/577a6e90d48e51c55e000217."""


def hotpo(n: int) -> int:
    c: int = 0
    while n != 1:
        n = (3 * n + 1) if n % 2 else n // 2
        c += 1

    return c

Kata url: https://www.codewars.com/kata/577a6e90d48e51c55e000217.