kamikaze/python-practics — Issue #6: Stage3: functions
Author: kamikaze
Created: 2012-01-26 15:29:22+00:00
State: open

In stage3.py file:

1) Define a function my_sum() which receives two arguments and returns their sum.
2) Define a function my_mul() which receives two arguments and returns their multiplication result.
3) Define a function my_random() which receives two arguments and returns their multiplication result.
4) Define a function my_greeting() which receives no arguments, asks user for his name and returns it.

5) in main() function call each function with parameters (if needed) and print each function result.