Skip to main content

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


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.2-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page