Predict the output of the following code snippet:
ptr=40
def result():
print ptr
ptr=90
def func(var):
if var<=60:
ptr=30
result()
func(60)
func(70)
UnboundLocalError: local variable ‘ptr’ referenced before assignment.