"""


>>> for x in [3, 2, 1]:
...     print (x, 1.0/x)
...
(3, 0.33333333333333331)
(2, 0.5)
(1, 1.0)


This fails as a doctest:

>>> for x in [3, 2, 1, 0]:
...     print (x, 1.0/x)
...
(3, 0.33333333333333331)
(2, 0.5)
(1, 1.0)
Traceback (most recent call last):
  ...
ZeroDivisionError: float division

"""



if __name__ == '__main__':
    import doctest
    doctest.testmod()


