Probably I'm just too stupid, but...
Harvey Thomas
hst at empolis.co.uk
Wed Apr 24 11:54:44 EDT 2002
redflag wrote:
> Subject: Probably I'm just too stupid, but...
>
>
> >>> def c():
> for i in range(10):
> print i
>
>
> >>> c
> <function c at 0x00AA93B0>
> >>> for i in range(10):
> print i
>
>
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> >>>
>
> why didn't "c" work as I imagined?
> --
because it should have been
c()
to invoke the function.
_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service.
More information about the Python-list
mailing list