Aug-29-2019, 12:49 AM
i'm building a string from pieces being appended. this does not fit into formatting or f-strings because they are maybe added according to an if conditional, repeated in a loop, and/or modified by function calls. i have been using a lot of
+=
operators to do this. now i am wondering if it might be be better to .append()
these strings to a list and ''.join()
them all together at the end. a typical run in my current project will involve a few million +=
operations.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.