OILS
/
opy
/
testdata
/ speed.py
View on Github
|
oilshell.org
12 lines, 9 significant
1
#!/usr/bin/env python2
2
def do_sum(n):
3
sum = 0
4
for i in xrange(n):
5
sum += i
6
print(sum)
7
8
if __name__ ==
'__main__'
:
9
import sys
10
n = int(sys.argv[1])
11
do_sum(n)
12