acb7111
1
2
3
4
5
def f(): a: int print(a) # raises UnboundLocalError # Commenting out the a: int makes it a NameError.