Ad
  • Custom User Avatar
  • Custom User Avatar

    Your page_index method doesn't return for some value. Add some prints and move up the ones you have, figure out why.

    collection input: range(1, 25) , items per page: 10
    page_index input: 0 , number at index: 1
    

    That's the info of the test your code is failing.

  • 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!