Quote:
|
Originally Posted by arod199113
in other programs is "def" necessary?
|
Well, it is all about code reuse...
It is not necessary, but it sure makes the job easier. For example, if you did not use a def statement to define the absolute value function, you would have to type the whole thing every time you want two numbers compared by their absolute value. It is not about space saving, but about time saving...