Hello, I’m using Itertools in python to give a series of permutations out. However, its outputting the numbers as sets of strings in a list. I’m wondering if there is a way to make the numbers into a grafted list?

Current python module and output:

Essentially, the output i’m looking for is each set of number- i.e index 0 (1,1,1,7) is actually output as

(0;0)

(0)1

(1)1

(2)1

(3)7

Thanks.