Python : Print Modifiers

kvm1917

Kalyanam Venumadhav

Posted on August 3, 2024

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

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
kvm1917
Kalyanam Venumadhav

Posted on August 3, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About