Answers for "pass list of strings as comma separated python"

1

turn list to string with commas python

a_list = ["a", "b", "c"]
joined_string = ",".join(a_list)
Posted by: Guest on January-15-2022
5

python list comma separated string

hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:")      	# My hobbies are:
print(", ".join(hobbies)) 		# basketball, football, swimming
Posted by: Guest on February-16-2021

Code answers related to "pass list of strings as comma separated python"

Python Answers by Framework

Browse Popular Code Answers by Language