Guest User

Untitled

a guest
Oct 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. >>> from itertools import count
  2. >>> def plusOne(n):
  3. ... c = count(n)
  4. ... next(c)
  5. ... return next(c)
  6. ...
  7. >>> plusOne(-6)
  8. -5
Add Comment
Please, Sign In to add comment