Answers for "python print comma seperated list"

3

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 "python print comma seperated list"

Python Answers by Framework

Browse Popular Code Answers by Language