(page_number, page_range)
Handle a negative *page_number*.

    Return a positive page number contained in *page_range*.
    If the negative index is out of range, return the page number 1.
Handle a negative *page_number*.
Handle a negative * page_number * .
def normalize_page_number(page_number, page_range):
    """Handle a negative *page_number*.

    Return a positive page number contained in *page_range*.
    If the negative index is out of range, return the page number 1.
    """
    try:
        return page_range[page_number]
    except IndexError:
        return page_range[0]
def normalize_page_number ( page_number , page_range ) : try : return page_range [ page_number ] except IndexError : return page_range [ 0 ]