Write a Python program to Concatenate N strings

example:-
company=['apple','facebook']
=>apple-facebook
code:-
list_of_colors = ['apple', 'google', 'facebook']  
colors = '-'.join(list_of_colors)
print()
print("company list: "+colors)
print()
output:-
company list: apple-google-facebook

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post