+ 1
How to print a list to string?
Input : [ 'a', 'b' ,'c'] Output : abc
3 ответов
+ 3
you could also use destructurator operator and sep named argument:
print(*['a','b','c'], sep='')
this will work even if not all values of list are string ;)
+ 2
Zahed Shaikh
Try this↓
lst=['a','b','c']
Str=''.join(lst)
print(Str)
0
Or try this:
for i in Input:
print(i,end="")