I want to import a value inside a function which will work as an escape sequence on the string the function should print. Any help is greatly appreciated.
def vhf(c):
print "...I want this \%s escape sequence" % c
vhf('n')
The output is :
...I want this \n escape sequence
But I want it to be:
...I want this
escape sequence