Say I have a function
def foo(): return [1, 2, 3]
I want to interpolate the result of the function into a string to get "001 002 003"
. I've tried this:
f"{*foo():03d 03d 03d}"
But it produced SyntaxError: can't use starred expression here
. Can I do this using an f-string?