If I have some values A B C, is is possible to generate a list of all their possible truth values:
the input is ["X", "Y", "Z"]
e.g. the list contains 8 lists (rows of table)
[ [ ("X",True), ("Y",True), ("Z", True) ],
[ ("X",True), ("Y",True), ("Z", False) ],.... ]
Are there any hints on how to do this?
I would like to generate a truth table for an arbitrary number of variables.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…