Thread: def my_abs()?
View Single Post
Old Mar 3rd, 2005, 8:57 PM   #16
Fred
Programmer
 
Fred's Avatar
 
Join Date: Feb 2005
Posts: 67
Rep Power: 4 Fred is on a distinguished road
Did you take math in school???
n can be any natural number. Meaning, that it can be any number without desmos or fractions which is bigger than 0.
In other words, n is a variable.
It is the number, which you put into the brackets, when you call the function (when you apply the prcess).
I strongly advise reading this tutorial:
http://www.ibiblio.org/obp/thinkCSpy/chap03.htm (functions in general)
and
http://www.ibiblio.org/obp/thinkCSpy/chap05.htm (useful functions and how to apply them)
Fred is offline   Reply With Quote