Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python multi line print

print('''
  _    _      _ _                            _     _ _ 
 | |  | |    | | |                          | |   | | |
 | |__| | ___| | | ___   __      _____  _ __| | __| | |
 |  __  |/ _  | |/ _     / / / _ | '__| |/ _` | |
 | |  | |  __/ | | (_) |   V  V / (_) | |  | | (_| |_|
 |_|  |_|\___|_|_|\___/    \_/\_/ \___/|_|  |_|\__,_(_)
''')
Comment

print multiple lines python

#You can use 
 to create a carriage return.
print("first line
Second line")

#Or use the following syntax to replace the commas with 

#to create carriage returns for each line.

print("first line", "second line", sep="
")

#Or use triple quotation marks at the start and end of 
#the text and format the text how you want it to appear.

print("""
Line1
Line2
""")
Comment

PREVIOUS NEXT
Code Example
Python :: save pythonpath 
Python :: python: select specific columns in a data frame 
Python :: join two numpy arrays 
Python :: python list comma separated string 
Python :: youtube-dl python download to specific folder 
Python :: sqlalchemy check if database exists 
Python :: python replace letters in string 
Python :: how to install python 3.6 ubuntu 
Python :: get path of notebook 
Python :: Dummy or One Hot Encoding code with pandas 
Python :: password combination python 
Python :: find the determinant of a matrix in python 
Python :: narcissistic number python 
Python :: print() in python 
Python :: count how many times a value shows in python list 
Python :: np.loadtext 
Python :: python print to stderr 
Python :: selenium webdriver python 
Python :: how to keep columns in pandas 
Python :: python change a key in a dictionary 
Python :: python mock function return value 
Python :: remove blanks from list python 
Python :: get last element of array python 
Python :: compute mad python 
Python :: what is need of bias in NN 
Python :: Tkinter button icons 
Python :: get columns that contain null values pandas 
Python :: pandas get column names with nan 
Python :: python replace 0 in series 
Python :: python code formatter vs code 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =