level that hides the one on the class. Straight after, the program deletes it from the object.
class Badge:
level = 1
def __init__(self):
self.level = 5
gold = Badge()
del gold.level
Which of these expressions are True? Select all that apply.One or more options are correct. Tick all the correct ones: a wrong option costs marks, and a part-right answer earns part of the marks.
Log in to join the discussion.
Loading…