f-string syntax for unpacking a list with brace suppression
f-string syntax for unpacking a list with brace suppression Question: I have been examining some of my string format options using the new f-string format. I routinely need to unpack lists and other iterables of unknown length. Currently I use the following… >>> a = [1, ‘a’, 3, ‘b’] >>> (“unpack a list: ” + …