Skip to content

vinod-boga/038-generate-sublists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write a Python program to generate all sublists of a list.

Define a function that takes a list as a parameter and returns a list of all the sublists of the list. The sublists should be sorted. Empty list is also a sublist.

Example:

Input

[10, 20, 30]

Output

[[], [10], [20], [30], [10, 20], [10, 30], [20, 30], [10, 20, 30]]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%