Chrome Extension

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)
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

Search Index Data (The code snippet can also be found with below search text)

multi line string python
Was this helpful?
0 Comments