Review Note
Last Update: 07/10/2024 01:20 PM
Current Deck: Python fundamentals
PublishedCurrently Published Content
Code
def f(): x = 1 x = 2 f() print(x) |
Output
Explanation
Functions have their own scope.
Context
Python
Current Tags:
Pending Suggestions
No pending suggestions for this note.