Merge branch 'master' of xato:0517
This commit is contained in:
22
packages/python/examples/multiply.pybk
Normal file
22
packages/python/examples/multiply.pybk
Normal file
@@ -0,0 +1,22 @@
|
||||
i = 5
|
||||
|
||||
def f(arg=i):
|
||||
print arg
|
||||
|
||||
def multiply(a,b):
|
||||
print "Will compute", a, "times", b
|
||||
c = 0
|
||||
for i in range(0, a):
|
||||
c = c + b
|
||||
return c
|
||||
|
||||
def square(a,b):
|
||||
return [a*a,b*b]
|
||||
|
||||
def lsquare(a):
|
||||
print a
|
||||
b = []
|
||||
for i in a:
|
||||
b.append(i*i)
|
||||
return b
|
||||
|
Reference in New Issue
Block a user