CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 14:58:58 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20071208103132
location: https://web.archive.org/web/20071208103132/https://wiki.python.org/moin/UsingEnumerate
server-timing: captures_list;dur=0.821982, exclusion.robots;dur=0.037201, exclusion.robots.policy;dur=0.019468, esindex;dur=0.018610, cdx.remote;dur=18.783284, LoadShardBlock;dur=1195.523551, PetaboxLoader3.datanode;dur=1089.763584
x-app-server: wwwb-app223
x-ts: 302
x-tr: 1244
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app223; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 14:58:58 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sat, 08 Dec 2007 10:31:32 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 08 Dec 2007 10:31:32 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 31 Dec 2005 02:34:02 GMT", ; rel="prev memento"; datetime="Sun, 05 Aug 2007 08:04:26 GMT", ; rel="memento"; datetime="Sat, 08 Dec 2007 10:31:32 GMT", ; rel="next memento"; datetime="Fri, 12 Aug 2011 09:40:32 GMT", ; rel="last memento"; datetime="Sat, 13 Jul 2024 23:11:24 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_1_20071208084132_crawl105-c/52_1_20071208103011_crawl107.arc.gz
server-timing: captures_list;dur=0.896476, exclusion.robots;dur=0.033291, exclusion.robots.policy;dur=0.014925, esindex;dur=0.017794, cdx.remote;dur=75.751452, LoadShardBlock;dur=256.480845, PetaboxLoader3.datanode;dur=238.614457, PetaboxLoader3.resolve;dur=170.286477, load_resource;dur=205.974506
x-app-server: wwwb-app223
x-ts: 200
x-tr: 592
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
UsingEnumerate - PythonInfo Wiki
UsingEnumerate
enumerate is easy to use:
1 for index, character in enumerate("hello"):
2 print "#%d: %s" % (index, character)
...which prints out:
#0: h #1: e #2: l #3: l #4: o
You can use it on just about any iterable sequence.
EditText (last edited 2004-12-28 03:01:38 by StevenBethard)
DeleteCache (cached 2007-09-01 15:34:56)- Login
- Navigation
- Actions
- Your recent pages