I am attempting to learn how to use the ascii function in Python 3.
The documentation reads
ascii(object)
As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string returned by repr() using \x, \u or \U escapes. This generates a string similar to that returned by repr() in Python 2.
However, when I attempt to use print ascii("c") I receive the error:
print ascii("c")
^
SyntaxError: invalid syntax
How do I use this function?
printis a function in Python 3.