python
Assign multi-line string to a variable in python
To use multi-line string in python you can use three quotes when making the string.
a = """Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua."""
print(a)
Was this helpful?
Similar Posts
- Python tip: How to insert a variable value inside a string
- [Python] Inheritance and adding variable. Page object example
- Single line if else condition python
- One line code to get the sum of a list in python
- Python Strings: Learn How to Add Line Breaks
- Python - String , Check If Word Is In string
- Python - String ,remove,delete,replace,extract numbers from string