Answers for "python str sepertaed by comma to 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 str sepertaed by comma to list"

Python Answers by Framework

Browse Popular Code Answers by Language