Python Quiz
10 questions · no time limit
0:00
OBJECT-ORIENTED PROGRAMMING
Question 1 of 10
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
class Code: def __init__(self, value): self.value = value def __repr__(self): return f"<Code {self.value}>" code = Code(5) print(str(code), repr(code))
The class defines __repr__ but not __str__. What is printed?
YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F