I know it\'s a really simple question, but I have no idea how to google it.
how can I do
print \'%s\' % (my_url)
Another option is to use format_map:
format_map
print('{s}'.format_map({'s': 'my_url'}))