from math import gcd


def solve(number: int=20) -> str:
    if number <= 0:
        raise TypeError

    lcd = 1

    for i in range(1, number + 1):
        lcd = (lcd * i) // gcd(lcd, i)

    return str(lcd)

from math import gcd


def solve(number: int=20) -> str:
    if number <= 0:
        raise ValueError

    lcd = 1

    for i in range(1, number + 1):
        lcd = (lcd * i) // gcd(lcd, i)

    return str(lcd)

Use ValueError for wrong input in 5