the following tab-delimits each item
The following creates a tuple, but not a tab-delimited string
Maybe f strings? Or format method or function?
print ("a", "b") a bIs there an equally simple way to build a tab-delimited string, aside from print?
The following creates a tuple, but not a tab-delimited string
myString = ("a", "b") print (myString) ('a', 'b')I think i could join with tab char, but that seems clunky and inefficient. I noticed, in my case, i need double-parens so that join sees a single argument.
delimited = "\t".join((str(idx), choice, '\n'))A for loop seem even more inefficient.
Maybe f strings? Or format method or function?