Python : Print Modifiers

Hey Folks, Print Modifiers modifies the code using single, double quotations and along with black slash ().

In English ‘\’ is used in speech sentence framing fun with a real world example.

Code:

Image description

If a word needs to be printed at middle of String(Sentence) we use Single Quotes or Double Quotes it’s up to our point. 2 Scenarios comes into picture like,

  1. Use Single Quotes in a String (Sentence) to add a word, check whether which quotes are using at starting (either Single or Double Quotes) to Print a Complete String

  2. Use Double Quotes in a String(Sentence) to add a word, check whether which quotes are using at starting either (Single or Double Quotes) to Print a Complete String

  3. Use \ before string to ignore Quotations and to Print a String


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Prompt engineer | careers | scale ai. Web develop mentor.