1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
def f(): if a: b = 1 else: c = 2 print b, c # ^ defined: 3 # ^ defined: 5 class G: if d: e = 1 print e # ^ defined: 13 print b, c, e # ^ defined: # ^ defined: # ^ defined: