Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

multiline string in python

#You can assign a multiline string to a variable by using three quotes:
#we use it when we want to assign  many lines in a variable in python
multiline_strings = """python is amazing ,
we can use it for many tasks ,
python is famous because python was not made to solve any kind of problem we
use it for many tasks , and this is how you declare multiline strigs """
print(multiline_strings
 
PREVIOUS NEXT
Tagged: #multiline #string #python
ADD COMMENT
Topic
Name
3+4 =