--Originally published at codemathblog.wordpress.com
What is a function?
It is just an algorithm you design and run it when you want to
But you need to define it, in python you just have to put def before start a function
In the parameters part, you can put numbers or anything, depending in what you want to do, i will do an adittion:
And it shows:
Its just a little review
I recommend you to see this video for more:
http://www.youtube.com/watch?v=qO4ZN5uZSVg
And look at this page for python exercises:
http://www.practicepython.org/
#All the images in this post are done by me
#TC101 #RABBIT