I have a list of uncertain size:
l = [...]
And I want to unpack this list into a tuple that has other values, but the below fails:
t = ("AA", "B", *l, "C")
How do I form the following?
t = ("AA", "B", l[0], ..., l[:-1], "C")
EDIT: it would also be nice to do a slice [a:b] only:
t = ("AA", "B", l[a], ..., l[b], "C")