List with duplicated values and suffix – stackoverflow.com

I have list a: a = ['a','b','c'] and need to duplicate some values with suffix _ind this way (order is important): ['a', 'a_ind', 'b', 'b_ind', 'c', 'c_ind'] I try: b = [[x, x + '_ind'] for x in ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "List with duplicated values and suffix – stackoverflow.com"