Thanks. I can see how putting the items into a tuple first would help in some cases, but i think it doesn't give much benefit here. Your
Your
One thing i don't like is that i can't embed spaces in the
f
statement doesn't use the entire tuple t
, it uses each element individually. So you're putting things into a tuple, and then taking them out again. Your
f
statement is less to type than my join
, which is good. # join myString = "\t".join((str(idx), choice, '\n')) # f myString = f"{str(idx)}\t{choice}\n"Would the
f
statement execute faster on a large set? (i don't mean more elements, i mean more rows with these same 2 elements per row)One thing i don't like is that i can't embed spaces in the
f
statement for visual clarity, because the spaces would become part of the string. myString = f" {str(idx)} \t {choice} \n"