strings and representations Flashcards
1
Q
unambiguous string representation of an object
A
repr()
2
Q
by default str() calls
A
repr()
3
Q
format method calls
A
__format__(self, f)
4
Q
function that replace non-ASCII characters with escape sequances
A
ascii()
5
Q
function that converts a character to its integer unicode codepoint
A
ord()
6
Q
function that converts an integer unicode codepoint to character string
A
chr()