For instance, we have:
word = \'Some Random Word\' print \'\"\' + word + \'\"\'
is there a better way to print double quotes around a varia
Using format method or f-string with repr(), you can write it more elegant.
a = "foo" print("{!r}".format(a)) b = "bar" print(f"{b!r}")