codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/e27L2qWd
[
raw code
|
output
|
fork
]
yong@pythonlab.org
-
Python
,
pasted on Jan 9:
1
2
3
4
5
def
square
(
x
):
return
x
*
x
for
n
in
range
(
5
):
print
square
(
n
)
Output:
1
2
3
4
5
0 1 4 9 16
Create a new paste based on this one
Comments: