easy question, how to double a variable

Carl Banks pavlovevidence at gmail.com
Mon Sep 21 04:17:22 EDT 2009


On Sep 20, 1: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

Simple:

Once you define the function, "copy" it using your editor commands,
then "paste" it right below the original.


Carl Banks



More information about the Python-list mailing list