Decorator function

Run Settings
LanguagePython
Language Version
Run Command
def dec(func): count = 0 def wrapper(): nonlocal count count +=1 print("before external function is called") func() print("after external function is called:", count) return wrapper @dec def hello(): print("hello") hello() hello()
Editor Settings
Theme
Key bindings
Full width
Lines