def prep_early_warning(hours, minutes, assignment_name):
    """
    Create a early warning message.

    :param hours: Hours until the deadline.
    :type hours: int
    :param minutes: Minutes until the deadline.
    :type minutes: int
    :param assignment_name: Name of the assignment that approaches its deadline.
    :type assignment_name: str
    :return: An early warning message.
    :rtype: str
    """
    return f'The deadline for {assignment_name} is in {hours} hours and {minutes} minutes.'