Skip to content

Usually I have the need to split some lists in python. Then I wrote a code to solve this iussue.

License

Notifications You must be signed in to change notification settings

gdefazio/split_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Split a list in Python

Usually I need to split lists in Python. Because there is not a method to do this, I wrote a code to solve this iussue.

I wrote list subclass method and I called this method split_list. For instance, if I have a huge amount of elements in this list, I can split this list in n sub-lists. I must write the number of chunks as argument of method. The method returns a list containing the asked chunks.

About

Usually I have the need to split some lists in python. Then I wrote a code to solve this iussue.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages