How would I print '\x08' as '\x08' in python? If I enter the command
print '\x08'
the output is blank instead of
\x08
Please use r before string, it means raw string, in which you don't need to escape special chars. For more details about string literal prefixes please read the documentation.
print r'\x08'