Saturday, October 23, 2010

Function

       In the simplest of terms, a function is just a chunk of code that does something. It’s a small piece that you can use to build a bigger program. You can put the piece together with other pieces, just like building something with toy blocks. You create or define a function with Python’s def keyword. You then use or call the function by using its name. Let’s have an example.


    

No comments:

Post a Comment