[Tutor] Fw: Traceback
dyoo at hashcollision.org
Wed Nov 19 01:45:53 CET 2014
On Tue, Nov 18, 2014 at 4:40 PM, Danny Yoo <dyoo at hashcollision.org> wrote:
> On Tue, Nov 18, 2014 at 4:34 PM, niyana morgan <niyanaxx95 at gmail.com> wrote:
>> Okay yeah this helping.
>> I believe getNumber does actually return a number.
> Ok. But check again. :p
In your original getNumber, you may be thinking of the concept of
"output variables", where an assignment to a particular
specially-designated variable sets the function's result. Languages
like Fortran or Matlab do this.
However, Python doesn't do this. There's an explicit "return"
statement that we use to note the result of a function.
More information about the Tutor