import dis
def fib1(n):
if n < 2:
return n
current, next = 0,1
while n:
current, next = next, current + next
n -= 1
return current
print(fib1.__code__) # the address of the function
print(fib1.__code__.co_consts) # return tuple, constant, first
print(fib1.__code__.co_names) ## all the local variable names,
print(fib1.__code__.co_code) # actual bye code
dis.dis(fib1)