What is the most memory-efficient way to join a list into a string in MICROPYTHON?
the list object in MICROPYTHON doesn't have the 'join' function, so I would like to know if there's any memory-efficient way to do so
What is the most memory-efficient way to join a list into a string in MICROPYTHON?
the list object in MICROPYTHON doesn't have the 'join' function, so I would like to know if there's any memory-efficient way to do so
As with standard Python, join
is a method of strings not of lists. See:
Python join: why is it string.join(list) instead of list.join(string)?
and/or
I overlooked, there's indeed a join function from the str class to join the list
e.g.
",".join(["a","b","c"])