Why Do We Write F Before Double Quotes In Print

[Solved] Why Do We Write F Before Double Quotes In Print | Vb - Code Explorer | yomemimo.com
Question : how to print in double quotes in python

Answered by : prakhar-tiwari

# There are two ways -
print('"By using single quotes"')
print("\"Or By using escape character double quotes\"")

Source : | Last Update : Fri, 11 Jun 21

Question : why do we write f before double quotes in print statement in python

Answered by : talos-robo

## calling the function using f-string
name = "Datacamp"
print(f"{greet(name)}")

Source : https://www.datacamp.com/tutorial/f-string-formatting-in-python | Last Update : Mon, 13 Jun 22

Answers related to why do we write f before double quotes in print statement in python

Code Explorer Popular Question For Vb