Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python split list

string = "this is a string" 		# Creates the string
splited_string = string.split(" ")	# Splits the string by spaces
print(splited_string) 				# Prints the list to the console
# Output: ['this', 'is', 'a', 'string']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #split #list
ADD COMMENT
Topic
Name
8+3 =