Quick actions

cmd+k|ctrl+k

Navigation

Languages

Exercise: scope

Snippet info

Language

Python

Visibility

public

Author

bensruthy

Created

2026-03-18T05:38:38.672602Z

Updated

2026-03-18T05:38:38.672602Z

a=1


def parent():
    a=10
    def confusion():
        return a
    return confusion()
    
print(parent())
print(a)
INFO