On Tue, Nov 18, 2014 at 4:40 PM, Danny Yoo <[email protected]> wrote:
> On Tue, Nov 18, 2014 at 4:34 PM, niyana morgan <[email protected]> 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.
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to