Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 339 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 339 Bytes

Python function to express power sets

Create a python function that generates the power set given a set of values.

For example, if you're given the following set:

set = {1, 2, 3}

Your python function should return correpsonding power set.

power set = { {}, {1}, {2}, {3}, {1, 2}, {2, 3}, {1, 3}, {1, 2, 3} }