F5F Stay Refreshed Software General Software How Do I Write A Long Line Of Text Inside A Python String?

How Do I Write A Long Line Of Text Inside A Python String?

How Do I Write A Long Line Of Text Inside A Python String?

R
RawrItsDaniel
Junior Member
4
03-06-2026, 07:57 PM
#1
How do I write a long line in Python and show it on my computer screen? Thanks.
R
RawrItsDaniel
03-06-2026, 07:57 PM #1

How do I write a long line in Python and show it on my computer screen? Thanks.

C
Cuntuc
Member
71
03-09-2026, 12:36 AM
#2
Python makers and PL/1 makers deserve to be together on the same bad list.
C
Cuntuc
03-09-2026, 12:36 AM #2

Python makers and PL/1 makers deserve to be together on the same bad list.

M
MikeGamer15YT
Member
110
03-15-2026, 11:09 AM
#3
You can use triple quotes to make a long line of text that stays on one line. The code looks like this: sss = '''This is my message.''. To read more about how Python handles strings, check out this link: https://www.poftut.com/python-string-variable-type/
M
MikeGamer15YT
03-15-2026, 11:09 AM #3

You can use triple quotes to make a long line of text that stays on one line. The code looks like this: sss = '''This is my message.''. To read more about how Python handles strings, check out this link: https://www.poftut.com/python-string-variable-type/

T
thibdu87
Member
229
03-15-2026, 05:05 PM
#4
A Python multiline string lets you put text on more than one line. Here are some different ways to make them. They can help with writing comments or changing the look of a SQL query. Check out this website for more info: www.techbeamers.com
T
thibdu87
03-15-2026, 05:05 PM #4

A Python multiline string lets you put text on more than one line. Here are some different ways to make them. They can help with writing comments or changing the look of a SQL query. Check out this website for more info: www.techbeamers.com

A
Angel_Wingsx_
Member
160
03-16-2026, 04:59 PM
#5
Hey there! You can write a multi-line string by using the quotes like this: '...' or "..." Here is an EXAMPLE of a multiline string.''' Go ahead and use it as a multiline comment too. '''Read more about different Python strings here. Reference Link and Reference Link'''
A
Angel_Wingsx_
03-16-2026, 04:59 PM #5

Hey there! You can write a multi-line string by using the quotes like this: '...' or "..." Here is an EXAMPLE of a multiline string.''' Go ahead and use it as a multiline comment too. '''Read more about different Python strings here. Reference Link and Reference Link'''