Review Note

Last Update: 07/10/2024 01:20 PM

Current Deck: Python fundamentals

Published

Currently Published Content


Code
def f():
    x = 1

x = 2
f()
print(x)

Output
Explanation
Functions have their own scope.
Context
Python

Current Tags:

python_fundamentals

Pending Suggestions


No pending suggestions for this note.