ascii |
| ascii(object) |
Returns a string containing a printable representation of an object (built-in). |
| object | ?? |
| REMARKS |
| * This is a built-in function. * 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. * You can use the chr function to * You can use the ord function to * You can use the repr function to * For the Official documentation refer to python.org |
myText = 'Better Solutions'
print(ascii(myText)) #= 'Better Solutions'
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top