Alternative for Range and Enumerator
Project description
Counter
Counter is altanative for range and enumrator.
Install
pip install itrcnt
How to
count(start, end=None, step=None)
Import
from itrcnt import count
e.g.
for i in count(1,10):
print(i)
1
2
3
4
5
6
7
8
9
10
for i in count(1,10,2):
print(i)
1
3
5
7
9
items = ['foo', 'bar']
for i, item in (1,items):
print(i,item)
1 foo
2 bar
items = ['foo', 'bar']
for i, item in (0,items,2):
print(i,item)
0 foo
2 bar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
itrcnt-0.1.1-py3-none-any.whl
(2.2 kB
view hashes)