M
M
ma3xak2018-05-22 21:36:48
Python
ma3xak, 2018-05-22 21:36:48

How to display the value of a variable in quotes?

Good evening, I can not find the answer in Google, maybe I'm not looking in the right place.
Let 's say How do I display the value of this variable in quotes?
с = 79999933333

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2018-05-22
@ma3xak

print("с = '%d'" % c)

D
DDDsa, 2018-05-23
@DDDsa

for Python 3.6 and up
print(f'"{c}"')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question