CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 10:05:07 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20170906073448
location: https://web.archive.org/web/20170906073448/https://code.activestate.com/recipes/langs/python/
server-timing: captures_list;dur=0.636598, exclusion.robots;dur=0.023061, exclusion.robots.policy;dur=0.010239, esindex;dur=0.011425, cdx.remote;dur=17.521944, LoadShardBlock;dur=284.278665, PetaboxLoader3.datanode;dur=64.181758, PetaboxLoader3.resolve;dur=127.064092
x-app-server: wwwb-app222
x-ts: 302
x-tr: 331
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app222; 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, 31 Jul 2025 10:05:08 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Wed, 06 Sep 2017 07:34:48 GMT
x-archive-orig-server: Apache
x-archive-orig-content-length: 39382
x-archive-orig-vary: Cookie
x-archive-orig-etag: "ad14c871fd0641de7e23e084eba8594c"
x-archive-orig-cache-control: max-age=60
x-archive-orig-set-cookie: csrftoken=80039d0bce57952fdf7d2d816579d54a; expires=Wed, 05-Sep-2018 07:34:49 GMT; Max-Age=31449600; Path=/
x-archive-orig-x-frame-options: SAMEORIGIN
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 06 Sep 2017 07:34:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 18 Jul 2008 02:31:10 GMT", ; rel="prev memento"; datetime="Mon, 12 Jun 2017 11:38:16 GMT", ; rel="memento"; datetime="Wed, 06 Sep 2017 07:34:48 GMT", ; rel="next memento"; datetime="Thu, 19 Oct 2017 07:27:13 GMT", ; rel="last memento"; datetime="Sun, 08 Jun 2025 08:39:37 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: liveweb-20170906072959/live-20170906071211-wwwb-app1.us.archive.org.warc.gz
server-timing: captures_list;dur=0.632394, exclusion.robots;dur=0.026124, exclusion.robots.policy;dur=0.013176, esindex;dur=0.014232, cdx.remote;dur=13.829974, LoadShardBlock;dur=238.806153, PetaboxLoader3.datanode;dur=222.986938, PetaboxLoader3.resolve;dur=223.324280, load_resource;dur=268.536381
x-app-server: wwwb-app222
x-ts: 200
x-tr: 655
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
Popular Python recipes « ActiveState Code
Python Versions
NOTE: Recipes have moved! Please visit GitHub.com/activestate/code
for the current versions.
Popular Python recipes
Tags: 





-
4kviews2Classifying characters using nested conditional expressionsscorePython / characters, classification, conditional_expressions, expressions, join, lambda, map / by Vasudev Ram (4 months ago)
View popular, latest, top-rated or most viewed
Feed of the popular Python recipes
Python Versions 
Top-rated recipes
- Decorator for BindingConstants at … (Python)
- Infix operators (Python)
- Spreadsheet (Python)
- Named Tuples (Python)
- Linear equations solver in 3 lines (Python)
- Singleton? We don't need no stinki… (Python)
- Send an HTML email with embedded i… (Python)
- Creating a daemon the Python way (Python)
- Groupby (Python)
- Readable switch construction witho… (Python)
Python tags
more…algorithms database debugging files graphics linux math mathematics network oop programs python shortcuts sysadmin text threads tkinter web windows xml
Accounts
Feedback & Information
ActiveState
Privacy Policy | Contact Us | Support
© 2017 ActiveState Software Inc. All rights reserved. ActiveState®, Komodo®, ActiveState Perl Dev Kit®, ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®, and ActiveTcl® are registered trademarks of ActiveState. All other marks are property of their respective owners.
x