Jan-24-2020, 08:58 PM
some complicated code needs to form a str one character at a time, as it figures out each character, one at a time. these characters can be any Unicode character, so inserting or appending bytearray is not an option. maybe forming a list is an option. but, i need to end up with a str type result. appending to a growing str type is not an option since str is immutable. i could reconstruct a new str each time like
newstr = oldstr + character
, but that would be a lot of work. or would it? is there a better way to build a str one character at a time?
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.