Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python break long string multiple lines

To break a long string without making it show in the terminal that you wrote it on multiple lines.

a = "This is the first part of a long string" 
	"This is the second part of a long string" 
	"This is the third part of a long string"

print(a)
		
Comment

PREVIOUS NEXT
Code Example
Python :: opencv export image 
Python :: numpy empty image 
Python :: pandas dataframe delete column 
Python :: create a list of a certain length python 
Python :: python dictionary comprehension 
Python :: python sizeof 
Python :: python correlation between features and target 
Python :: block window if another window is open tkinter 
Python :: index of max value of sequence python 
Python :: cool things to do with python 
Python :: increase colorbar ticksize 
Python :: loop append to list python 
Python :: pandas to latex 
Python :: lag function in pandas 
Python :: int object is not subscriptable in python 
Python :: playsound error python 
Python :: plt opacity hist 
Python :: pandas series quantile 
Python :: how to make minecraft using python 
Python :: np.array to list 
Python :: python refresh import 
Python :: python insert on a specific line from file 
Python :: connecting python with database 
Python :: get only first 10 columns pandas 
Python :: delete directory if exists python 
Python :: how to change avatar of a bot using discord.py 
Python :: create and populate dictionary python 
Python :: pandas gropu by 
Python :: keras linear regression 
Python :: unshorten url python 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =