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:
S
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.