root / PyCon07 / material / utils.py

Revision 44:52352cab055b, 177 bytes (checked in by Tarek Ziad?? <tarek@…>, 21 months ago)

added slides

Line 
1"""
2Utilities
3"""
4
5def sum(a, b):
6    """returns the sum"""
7    return a + b
8
9def division(a, b):
10    """returns a division"""
11    if a == 0:
12        return 0
13    return a / b
Note: See TracBrowser for help on using the browser.