def check_zip(zip_code):
    """check if zip code has correct format.

    Args:
        zip_code as a string

    Returns:
        a boolean indicating if valid (True) or not (False)
    """
    if len(zip_code) < 5:
        return False
    if not zip_code[:5].isdigit():
        return False
    return True