How to print double quotes around a variable?
Update : From Python 3.6, you can use f-strings >>> print(f'”{word}”‘) “Some Random Word” Original Answer : You can try %-formatting >>> print(‘”%s”‘ % word) “Some Random Word” OR str.format >>> print(‘”{}”‘.format(word)) “Some Random Word” OR escape the quote character with \ >>> print(“\”%s\”” % word) “Some Random Word” And, if the double-quotes is not … Read more