You are here: Home / Topics / Python program to print formatted string

Python program to print formatted string

Filed under: Python on 2023-09-23 06:44:48

print("""
a string that you "don't" have to escape
This
is a  ....... multi-line
heredoc string --------> example
""")      

Output:

a string that you "don't" have to escape                                                                      
This                                                                                                          
is a  ....... multi-line                                                                                      
heredoc string --------> example  


About Author:
M
Mr. Dubey     View Profile
Founder of MCQ Buddy. I just like to help others. This portal helps students in getting study material free.