Alternative for Range and Enumerator
Project description
itrcnt
itrcnt is altanative for range and enumrator.
How to Install
pip install itrcnt
How tow Import
from itrcnt import count
How to Use
count(start, end=None, step=None)
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
File details
Details for the file itrcnt-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: itrcnt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0108ca75bad497101c2df9182e1e6c48fa6f4202f7f8e00c45cf635364362091 |
|
MD5 | 7ad802f075fc8453d38e9edabbab2e71 |
|
BLAKE2b-256 | c15ba3e0b63b2a71593e24d1dda7858ced9ff186cc7313e31fbf693c59df9ea8 |