Ad
  • Custom User Avatar

    My Python 3.10 code is failing below test, which I can't figure out:

    Testing.page_index() method - "page_index returned incorrect value: None should equal 0"

    PaginationHelper inputs:
    Collection: range(1,25)
    Items per page: 10
    Page index method input: 24
    It's asking for the page index of the number at index 24 from the original list
    My code returns index 2, however, am getting above test error message, which I can't figure out, what to fix.

    Any help is appreciated!