Functions
So far we’ve been using built in functions such as int() and raw_input(), but now it’s time for us to create our own functions. By creating functions we will save us time and money (well not actually any money, but saving time is nice). We can create small working functions and use them multiple times throughout our program. We can also reuse functions between programs.
Defining Functions
We define a function by using the following line-
Def functionname():
Anything indented under the def command will be part of the function.
The next line is documentation. Text in triple quotes will explain what the function does.
Complete the instructions program
Click Read More for the rest...

Indentation:





