<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_level_for_logger_and_its_handlers(log: logging.Logger, level: int) -> None: """ Set a log level for a log and all its handlers. Args: log: log to modify level: log level to set """

    log.setLevel(level)
    for h in log.handlers:  # type: logging.Handler
        h.setLevel(level)