Python/Basic functions: Difference between revisions
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
9 | 9 | ||
or | |||
>>>print square(square(3)) | >>>print square(square(3)) | ||
81 | 81 | ||
or even in statements such as: | |||
>>>10 + square(2) | >>>10 + square(2) | ||
14 | 14 | ||
and | |||
>>> y = square(10) | >>> y = square(10) | ||
>>> y | >>> y | ||
100 | 100 | ||