Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

separate words in a text to make a list python

your_text = "some text"
separated_text = your_text.split(" ") #the space is just an exemple but you can put anything
print(separated_text)

output:
['some', 'text']
Comment

PREVIOUS NEXT
Code Example
Python :: How to Add Elements To a Set using add() method in python 
Python :: matrix diagonal sum leetcode in Python 
Python :: color plt 
Python :: python enumerate 
Python :: flask send email gmail 
Python :: pytorch squeeze 
Python :: python is not clickable at point (434, 682). Other element would receive the click: 
Python :: uninstall every package in environment 
Python :: how to convert response to beautifulsoup object 
Python :: python string iterate 3 characters at a time 
Python :: django login url 
Python :: discord bot python example 
Python :: check if string match regex python 
Python :: keras conv2d 
Python :: code 
Python :: python web framework 
Python :: python oauthlib 
Python :: fizz buzz 
Python :: how to code a trading bot in python 
Python :: python fill string with spaces to length 
Python :: removing duplicates from django models data 
Python :: pandas how to drop rows with extreme values in a single column 
Python :: smtp django 
Python :: progress bar in python 
Python :: python prettytable 
Python :: numpy python 3.10 
Python :: how to set python path in mac 
Python :: pygame scroll event 
Python :: python generate dictionary in loop 
Python :: join two querysets django 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =