Skip to content

Python Journey

My Coding Blog

Menu
  • Links
Menu

Tag: template

Python>>String Interpolation and Formatting

Posted on August 31, 2022August 31, 2022 by coden00b

String Interpolation is a process substituting values of variables into placeholders in a string Few methods as follow: a. .format() = is for simple positional formatting that  uses to  substitute in place of braces {}. Example: >> print (‘Welcome to {}’.format(‘ Linux Tutorials’)) Welcome to Linux Tutorials >> title = “Linux Tutorials” >>> print(‘Welcome to…

Read more

Recent Posts

  • The Zen of Python
  • Python>>String Interpolation and Formatting
  • Python>>String Methods
  • Python>>String Concatenation
  • Python>>Strings: Indexing and Slicing

Recent Comments

No comments to show.

Archives

  • January 2023
  • August 2022

Categories

  • Blog
  • Data Types