I have a list like this
list=[[2,3],[3,4]]
I want to print each list in the list like this:
1: 2 3, 2: 3 4
So the first part is the position of the list in the list followed by the numbers in the list.
So far i've tried a for loop and a single print line. The for loop works but prints every list in a new line. The other print statement looks like this but it doesn't work at all and i have no idea how to fix it.
print('{0:}:'.format(list[0]),' '.join([', '.join([str(e) for e in slist]) for slist in list]))
For this the list looked like this list = [[1,2,3],[2,3,4]] so the first element in each list is the index for the list (starts at 1)
I use Python3