Skip to main content

Alternative for Range and Enumerator

Project description

Counter

Counter is altanative for range and enumrator.

Install

pip install counter

How to

count(start, end=None, step=None)

Import

from counter 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


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.0-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