I have an array on hand. Now I'd like to have a combined print of text and array entries, so I'd use .format.
I'd like to now if there is a way to get the following work with that for loop (not a[0],a[1],a[2]).
a = [1,2,3]
print("""
A is {}
B is {}
C is {}
""".format(i for i in a))
This one returns IndexError: tuple index out of range