How To Print In Double Quotes In Python

[Solved] How To Print In Double Quotes In Python | 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

Question : python return double quotes instead of single

Answered by : successful-stag-9szbm9memt93

>>> import json
>>> List = ["A", "B"]
>>> print json.dumps(List)
["A", "B"]

Source : https://stackoverflow.com/questions/32606599/return-a-variable-in-a-python-list-with-double-quotes-instead-of-single | Last Update : Sun, 13 Sep 20

Answers related to how to print in double quotes in python

Code Explorer Popular Question For Vb