Python · Type Annotations
Which of these two lines raises NameError when the class is defined? (nope is undefined) class C: attr: nope = 1 # A def __init__(self): self.x: nope = 2 # B
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
