25

Lets say you have a list like ['a', 'b', 'c'] and you want it to look like 'abc' and you don't want to use some big stupid looking for loop.

0

2 Answers 2

46
>>> str_list=['a','b','c']
>>> ''.join(str_list)
'abc'
Sign up to request clarification or add additional context in comments.

Comments

8

I think it's

string = ''.join(['a', 'b', 'c'])

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.