Irin
asked

Expert
Palistha Singh answered
In Python, multi-line strings are used when you want to store or display text that spans across multiple lines — instead of just one.
You define a multi-line string using triple quotes (''' or """).
Example:
message = """Hello!
Welcome to Python programming.
This is a multi-line string."""
print(message)
Output:
Hello!
Welcome to Python programming.
This is a multi-line string.
If you have more questions, I’m here to help — feel free to ask anytime!
Python
This question was asked as part of the Getting started with Python course.
Our Experts
Sanjeev PanditPrincipal Engineer
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Anuj ShresthaTech Lead
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer