Let's take:
my_list=[["a","b","c"],["d","e","f"],["g","h","i"],["j","k","l"]]
And the result I'm looking for:
0. a _ b (c)
1. d _ e (f)
2. g _ h (j)
3. j _ k (l)
Let's take:
my_list=[["a","b","c"],["d","e","f"],["g","h","i"],["j","k","l"]]
And the result I'm looking for:
0. a _ b (c)
1. d _ e (f)
2. g _ h (j)
3. j _ k (l)
To get exactly your output printed in the console, iterate over the outer list and use enumerate and str.format:
values = [["a","b","c"],["d","e","f"],["g","h","i"],["j","k","l"]]
for i, x in enumerate(values):
print("{}. {} _ {} ({})".format(i, *x))
# 0. a _ b (c)
# 1. d _ e (f)
# 2. g _ h (i)
# 3. j _ k (l)