Skip to content

Instantly share code, notes, and snippets.

@bensonk
Created May 13, 2013 23:38
Show Gist options
  • Save bensonk/5572451 to your computer and use it in GitHub Desktop.
Save bensonk/5572451 to your computer and use it in GitHub Desktop.
In [5]: [ (n, 0.5 ** n) for n in range(1, 15) ]
Out[5]:
[(1, 0.5),
(2, 0.25),
(3, 0.125),
(4, 0.0625),
(5, 0.03125),
(6, 0.015625),
(7, 0.0078125),
(8, 0.00390625),
(9, 0.001953125),
(10, 0.0009765625),
(11, 0.00048828125),
(12, 0.000244140625),
(13, 0.0001220703125),
(14, 6.103515625e-05)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment