Bifalgorithm post

If I want to print the value of the variable inside the string then how I can do that. I will write a print statement here and inside print statement I will write my edge edge and here I want to pass the value of the variable. So for that I will open a curly braces here and inside curly braces I will write edge. That means I will pass the variable here and now we need to add f at the beginning of the string. So I will write here f. Now if I run this file then you can see the result. It will print my as is 23. In python this string is known as formatted string or f string. So if you want to learn more about programming then subscribe to coding things.

If I want to print the value of the variable inside the string then how I can do that. I will write a print statement here and inside print statement I will wr…

Ideas in this flowchart

  • Printing Variable in String
  • Print Statement
  • Use Curly Braces
  • Insert Variable
  • Add 'f' at Start
  • Run File
  • Output: Formatted String
  • Learn More: Subscribe
Feed/

If I want to print the value of the variable inside the string then how I can do that. I will write a print statement here and inside print statement I will write my edge edge and here I want to pass the value of the variable. So for that I will open a curly braces here and inside curly braces I will write edge. That means I will pass the variable here and now we need to add f at the beginning of the string. So I will write here f. Now if I run this file then you can see the result. It will print my as is 23. In python this string is known as formatted string or f string. So if you want to learn more about programming then subscribe to coding things.

"If I want to print the value of the variable inside the string t"

👍
0
0 comments0 shares

Sign in to view and post comments.