def convert24(time, meridiem):
    """Convert hour to 24 hour format

    Arguments:
        time {list} -- Array of Hour, Minute
        meridiem {str} -- String of meridiem

    Returns:
        int -- 24 Hour format of hour
    """

    if meridiem == 'am' and time[0] == '12':
        return 0
    elif meridiem == 'am':
        return int(time[0])
    elif meridiem == 'pm' and time[0] == '12':
        return int(time[0])
    return int(time[0])+12