If it won't be simple, it simply won't be. [Hire me, source code]
from itertools import countnext_id = count(0).nextprint next_id() # 0print next_id() # 1print next_id() # 2
No comments:
Post a Comment