strings and representations Flashcards

1
Q

unambiguous string representation of an object

A

repr()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

by default str() calls

A

repr()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

format method calls

A

__format__(self, f)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

function that replace non-ASCII characters with escape sequances

A

ascii()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

function that converts a character to its integer unicode codepoint

A

ord()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

function that converts an integer unicode codepoint to character string

A

chr()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly