Write a Python program to concatenate N strings.

Write a Python program to concatenate N strings.

1
2
3
4
5
list_of_colors = ['Red', 'White', 'Black']  
colors = '-'.join(list_of_colors)
print()
print("All Colors: "+colors)
print()

Final output

Leave a Comment