[Tutor] Returned values

Ryan Sheehy the_investor at arach.net.au
Thu Dec 18 20:10:16 EST 2003


I am just wondering how you would know what a function returns when it is
called.

As an example, if I have code like so:

	>>> abc = 1
	>>> xyz(abc)
	result of 'xyz'

... where 'xyz' is any function that can accept 'abc' (without errors), how
will I know what type of value 'xyz' has returned (boolean? string? integer?
float?), obviously I might be able to see what it has returned in IDLE, but
what if I cannot (for whatever reason)?

I hope my silly question makes sense. :o)


Ryan
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/2003




More information about the Tutor mailing list