Mater Dei Python Code
Sunday, March 9, 2014
List 14/18
def my_function(x):
for i in range(0, len(x)):
x[i] = x[i] * 2
return x
print my_function(range(0,3)) # Add your range between the parentheses!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment