Characters to string

01. Convert a list of character into a string

#Solution:

s = ['a', 'b', 'c', 'd']
str1 = ''.join(s)
print(str1)



No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...