I am a beginner in Python and I need a help with this task:
I have a a list with unknown number of characters that have a following form:
my_list = ["t1v1", "t1v2", "t2v1", "t2v2", "t2v3"]
t
stands for a test and v
stands for a version of the test. I would like to get all possible combinations between tests. In this case I will have 2x3=6 combinations of tests.
combinations = ["t1v1_t2v1", "t1v1_t2v2", "t1v1_t2v3", "t1v2_t2v1", "t1v2_t2v2", "t1v2_t2v3"]
I cannot make combinations within a test, for example "t1v1_t1v2"
is not possible. Moreover, I can have more tests, not just two as in this example.
How can I do this, please?