How do you call a function several times in this context??
Alister
alister.ware at ntlworld.com
Sun Jan 6 17:35:55 EST 2013
On Sun, 06 Jan 2013 14:33:26 -0700, Jason Friedman wrote:
>> def double(value):
>> result return result
>>
>> number=input('type a number')
>> print (double(int(number)))
>>
>>
> I think what was meant:
>
> def double(value):
> result = 2 * value return result
yes indeed
thanks for correcting my typo
--
Quigley's Law:
Whoever has any authority over you, no matter how small, will
atttempt to use it.
More information about the Python-list
mailing list