elis aeris wrote:
> I actually said "ending" to avoid problems with different terminology
> between different languages - but i guess a return is still a return
> in python.
Return does not exit a program. A return statement denotes a point in a
function when the function will stop executing an
I actually said "ending" to avoid problems with different terminology
between different languages - but i guess a return is still a return in
python.
i did this search
http://www.google.ca/search?hl=en&q=python+tutorial+return&btnG=Google+Search&meta=
and it didn't return any particularly obviou
"elis aeris" <[EMAIL PROTECTED]> wrote
> how do I return a function?
>
Do you realise that this is an entirely different question
to the one you asked originally, namely:
>> what do I do if i want the program/function to end?
>>
>> in c++ of
>>int main(){}
>>I do a return 0;
One is asking about
elis aeris wrote:
> I seriously have done my homework on writing in python
I wonder if I am misunderstanding your question. This is a simple
question about how functions work in Python, right? Something that most
every beginning tutorial covers? You wouldn't be asking here if you had
done you
i was reading it the second time 6months after and in fact i am working on
version 3 of it with update to functionality.
(and yes, it is MY code)
how do I return a function?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo
"elis aeris" <[EMAIL PROTECTED]> wrote
> what do I do if i want the program/function to end?
>
> in c++ of
>
> int main(){}
>
> I do a return 0;
Actually you don;t. In your e4xample yuou just have empty
braces and that will end just fine! Similarly in Python it will
just silently drop off
and also, I didn't need to break function is that program, to which i am
amazed of, now come to think of it.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
elis aeris wrote:
> what do I do if i want the program/function to end?
>
>
> in c++ of
>
> int main(){}
>
> I do a return 0;
What have you tried in Python? How did it work and what didn't work the
way you expected? What Python documentation or tutorials have you read?
Maybe helpful:
http:/
what do I do if i want the program/function to end?
in c++ of
int main(){}
I do a return 0;
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor