in this article we'll learn how to print comma separated list in python

syntax

1
','.join(your_list)

example

1
2
3
4
5
6
7
8
9
#list
array = ['morocco', 'france', 'italy', 'japan', 'spain']

#print list with comma

join = ','.join(array)

#print
print(join)

output

morocco,france,italy,japan,spain

English today is not an art to be mastered it's just a tool to use to get a result