Talk:Python Concepts/Flow control

From Wikiversity
Jump to navigation Jump to search

What are returns?[edit source]

Hey, Just a quick question.

Don't know if I missed this or if it hasn't been covered or if I'm just getting confused.

in the "If, Elif, and Else" section there seem to be returns.

How deo you put these in or what are they?

Cheers (The preceding unsigned comment was added by 87.113.10.102 (talkcontribs) 20:00, 29 March 2008)

Returns I believe are kind of like the break command, which breaks out of the current loop, but instead of purely terminating the loop it will also return a value as the result of a function. I don't see any code though that talks about returns. If you don't get a prompt response on here (seeing that you asked this in 2008 and it is now currently 2011 when I am responnding) you might try posting the question on the Topic:Python page or even in the colloquium. Devourer09 (t·c) 00:50, 9 May 2011 (UTC)[reply]