easy question, how to double a variable

Processor-Dev1l processor.dev1l at gmail.com
Tue Sep 22 02:04:06 EDT 2009


On Sep 20, 10:27 pm, daggerdvm <dagger... at yahoo.com> wrote:
>  Write the definition of a function  twice , that receives an  int
> parameter and returns an  int that is twice the value of the
> parameter.
>
> how can i do this

I will stop this theatre...
as you should know, you want your function to make arithmetic
operation n*2.
Everything you have to do is to define some function with parameter n
and make this function to return n*2.
If you are not jerk, you can make the whole code you need from the
previous sentence :)))



More information about the Python-list mailing list