Your task is to create a class to handle paginated content in a website. A pagination is used to divide long lists of content in a series of pages.

The pagination class will accept 2 parameters:
items (default: []): A list of contents to paginate.
pageSize (default: 10): The amount of items to show in each page.
So for example we could initialize our pagination like this:
alphabetList = "abcdefghijklmnopqrstuvwxyz".split('')
p = Pagination(alphabetList, 4)
And then use the method getVisibleItems to show the contents of the paginated list.
p.getVisibleItems() # ["a", "b", "c", "d"]
You will have to implement various methods to go through the pages such as:
prevPagenextPagefirstPagelastPagegoToPageHere's a continuation of the example above using nextPage and lastPage:
p.nextPage()
p.getVisibleItems()
# ["e", "f", "g", "h"]
p.lastPage()
p.getVisibleItems()
# ["y", "z"]
pageSize) could be a float, in that case just convert it to an int (this is also the case for the goToPage method)p.nextPage().nextPage()p.totalPages and p.currentPage attributes to the appropriate number as there cannot be a page 0.totalPages attribute, then the goToPage method should go to the closest page to the number provided (e.g. there are only 5 total pages, but p.goToPage(10) is given: the p.currentPage should be set to 5; if 0 or a negative number is given, p.currentPage should be set to 1).