kamikaze/python-practics — Issue #11: Stage 5: global/local scopes
Author: kamikaze
Created: 2012-01-29 17:34:50+00:00
State: open
Labels: lessons

In stage5.py file implement following program:

There must be four functions which should not return any value (actually they will return None by default, it's ok):
1) ```magic_mul()``` (a*b)
2) ```magic_div()``` (a/b)
3) ```magic_sum()``` (a+b)
4) ```magic_diff()``` (a-b)
Each function takes 2 arguments and processes them.

Program asks user for a number, then for another one. Then it asks him to enter operation to do (until user enters supported symbol). Supported operation symbols are '+', '-', '*' and '/'. If user enters correct operation symbol - program must run this operation and print out a result. BUT... functions must not return their results with ```return``` statement. Your code must operate with a global variable ```result```.