def precip_36(code: str, unit: str = 'in') -> str:
    """
    Translates a 5-digit 3 and 6-hour precipitation code
    """
    return ('Precipitation in the last 3 hours: '
            f'{int(code[1:3])} {unit}. - 6 hours: {int(code[3:])} {unit}.')