Python/Basic functions: Difference between revisions

No edit summary
No edit summary
Line 32: Line 32:
     9
     9


    or
or


     >>>print square(square(3))
     >>>print square(square(3))
     81
     81


    or even in statements such as:
or even in statements such as:


     >>>10 + square(2)
     >>>10 + square(2)
     14
     14


    and
and


     >>> y = square(10)
     >>> y = square(10)
     >>> y
     >>> y
     100
     100