def adder( num1 , num2):
return num1 + num2
def multiply( num1 , num2):
return num1*num2
print multiply(3,range(2)) # oh what fun it is!
print(multiply(3,list(range(2)))) # python 3k.Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.
def adder( num1 , num2):
return num1 + num2
def multiply( num1 , num2):
return num1*num2
print multiply(3,range(2)) # oh what fun it is!
print(multiply(3,list(range(2)))) # python 3k.lecture5 stacy.py 1 (last edited 2008-11-15 13:59:52 by localhost)