Skip to content

Python Journey

My Coding Blog

Menu
  • Links
Menu

Tag: .format

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

  • Python Project1: Guess Number
  • The Zen of Python
  • Python>>String Interpolation and Formatting
  • Python>>String Methods
  • Python>>String Concatenation

Archives

  • December 2024
  • January 2023
  • August 2022

Tags

.format attributes concatenation count data type find float fstring guess indexing interpolation len lower methods number project python random replace slicing string strings template time upper zen
© 2025 Python Journey | Powered by Minimalist Blog WordPress Theme