Given a list, you can use ' '.join
:
s = ['hello','world']
new_s=" ".join(s)
Output:
'hello world'
1
solved How to change a split str into a normal str [duplicate]
Given a list, you can use ' '.join
:
s = ['hello','world']
new_s=" ".join(s)
Output:
'hello world'
1
solved How to change a split str into a normal str [duplicate]