f

Python Quick Tip: F-Strings - How to Use Them and Advanced String Formatting

0:00
↔️ ↕️

Timecodes:

hey there how's it going everybody now

this is going to be a quick video where

I show you a feature that you've likely

seen me use and a lot of my videos so

far and that is F string so f strings

are a new way to format strings in

Python 3.6 and above and I prefer using

them over any other formatting methods

so if you're not using Python 3.6 or

higher then you'll need to install that

in order to follow along with this video

okay so let's take a couple of examples

and see why I prefer using these so

first of all I have two variables here

at the top so I have first name and last

name so let's say that I wanted to print

a sentence that says my name is and then

include the first name and last name in

that string now the way you've probably

been familiar with doing this is with

the format method and this is how I used


Related queries:


how to find string in python
how to find string in python list
how to write f string in python
how to do f string in python
how to add f string in python
how to make f string in python
how to replace f string in python
how to find string length in python
how to find string index in python