Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

From words to headers

This

cond1=[Word(['AB', 'AC', 'AD', 'BC', 'BD', 'CD'])[i] for i in range(len(cond))]

gives ['AB', 'AC', 'AD', 'BC', 'BD', 'CD'] but I want that [r'$A-B$', r'$A-C$', r'$A-D$', r'$B-C$', r'$B-D$', r'$C-D$'] to make a header for a table. Is there a way to obtain what I expect ?