First page Back Continue Last page Overview Graphics

Global or Local

def f():

print(s)

s = "Python"

f()

Output:

Python

def f():

s = "Perl"

print(s)

s = "Python"

f()

print(s)

Output:

Perl

Python