Skip to content

edussilva/python-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-utils

Useful Python functions

  • sublist.py

    Return a sublist of a list according to the index and number of elements (ideal for range pagination)

        full_list = [6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
        index = 2
        quantity = 7
        sublist(full_list, index, quantity)
        [6, 7, 8, 9, 10, 11, 12]

About

Useful python functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages