For the complete documentation index, see llms.txt. This page is also available as Markdown.
Basic Variable scope
Basic Variable scope:
age =27# This is known as global scopeprint(age)defincrease_age(): age =30# Is this variable the same as the one defined above?# No, this is a different variable and is part of local scopeprint(age)# prints 27increase_age()print(age)# still prints 27