A
alex23
Hey Andreas,
I find that binding a name to the separator makes it more readable
(YMMV):
Hope this helps.
-alex23
I loved to use
I think the former is much more telling what is happening than the
latter. However, I will get used to it.
I find that binding a name to the separator makes it more readable
(YMMV):
'a,b,c'>>> list_of_str = ['a','b','c']
>>> comma = ','
>>> comma.join(list_of_str)
['A', 'B', 'C']But what about this:upper_list = map(string.upper, list_of_str)
>>> upper_list = [s.upper() for s in list_of_str]
>>> upper_list
Hope this helps.
-alex23