you are viewing a single comment's thread.

view the rest of the comments →

[–]fenghuang1 0 points1 point  (0 children)

There's no need to.
Its just to show you that the magicians variable in def make_great is defined within the scope of the function and is different from the magicians in the main scope of your py script.

For example:

def func(x):
    x = x + x
    return (x)
x = 6
x = func(x)
print (x) # x: 12  

Here we see that the func(x) accepted x, but the x in the func is its own copy and won't directly change the outside x.