I am not positive if this is a combination or a permutation question.
I have a list of 4 topics
topics = ['A', 'B', 'C', 'D']
Each of these topics can have a state of on or off
state = [1, 0]
How would I go about listing out all possible combinations?
I am thinking a result something like this (df as example doesn't have to be a df):
A B C D
0 1 1 1 1
1 0 0 0 0
2 1 0 0 0
3 1 0 0 1