Python : Print Modifiers



This content originally appeared on DEV Community and was authored by Kalyanam Venumadhav

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


This content originally appeared on DEV Community and was authored by Kalyanam Venumadhav