How do you call a function several times in this context??

Jason Friedman jason at powerpull.net
Sun Jan 6 22:33:26 CET 2013


> 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



More information about the Python-list mailing list