Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list comma separated string

hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:")      	# My hobbies are:
print(", ".join(hobbies)) 		# basketball, football, swimming
 
PREVIOUS NEXT
Tagged: #python #list #comma #separated #string
ADD COMMENT
Topic
Name
8+9 =