Escape Sequence with Python

 print("Hey I am a \"good boy\"nand this viewer is also a good boy/girl")

   

print("Hello World")

   #This is a 'Single-Line Comment'

print("This is a print statement.")

print("Hello World!!!")     #Printing Hello World


Result:

Hey I am a "good boy"nand this viewer is also a good boy/girl

Hello World

This is a print statement.

Hello World!!!

Use backslash for escape sequence

Comments

Popular posts from this blog

According to Data Science Topic-13 Modules

Functions in Python:

According to Data Science Topic-12 If else program examples