Powered By Blogger

Wednesday, July 27, 2011

local and global scope

I spent 45 minutes at "Py Camp" today.

when I hame a line of code that says:
def sayhello(name)
this is a local scope because this is a function witch can have many operations inside of it and can be called apon to do those things when needed. (name) is the local scope (it's a variable).

a global scope is a variable that is not in a function.

No comments:

Post a Comment