[Tutor] Return Statement error
Danny Yoo
danny.yoo at gmail.com
Sun Oct 12 20:24:43 CEST 2014
On Oct 12, 2014 9:52 AM, "William Becerra" <wbecerra1 at gmail.com> wrote:
>
> Hello, I'm new to programming. I'm using Python 2.7.8 and Windows 8 OS
> I was making an application to see if I understand how the return
statement works
> I want my application to compare x and y and return either 1, -1 or 0.
> I'm using IDLE
The return statement is intimately tied to functions: look for tutorial
content about functions. For example:
http://www.greenteapress.com/thinkpython/html/thinkpython004.html
If you have questions, please feel free to ask.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141012/3f228c5e/attachment.html>
More information about the Tutor
mailing list