Create a Long Multiline String in Python Using Triple Quotes

(Last Updated On: 16/03/2023)

Python Program to Create a Long Multiline String Using Triple Quotes

# Create a Long Multiline String Using triple quotes in python

my_string = '''Welcome
to the 
newtum'''

print(my_string)

Output:

Welcome
to the 
newtum

Leave a Reply

Your email address will not be published. Required fields are marked *