René's URL Explorer Experiment


Title: python-by-example/python-by-example.rst at master · roycoding/python-by-example · GitHub

Open Graph Title: python-by-example/python-by-example.rst at master · roycoding/python-by-example

X Title: python-by-example/python-by-example.rst at master · roycoding/python-by-example

Description: Git repository for the "Python Language Features and Tricks You May Not Know Article" at http://sahandsaba.com/thirty-python-language-features-and-tricks-you-may-not-know.html - python-by-example/python-by-example.rst at master · roycoding/python-by-example

Open Graph Description: Git repository for the "Python Language Features and Tricks You May Not Know Article" at http://sahandsaba.com/thirty-python-language-features-and-tricks-you-may-not-know.html - roycodin...

X Description: Git repository for the "Python Language Features and Tricks You May Not Know Article" at http://sahandsaba.com/thirty-python-language-features-and-tricks-you-may-not-know.html - ...

Opengraph URL: https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:c6be77ba-b42d-8d24-67f9-4e08ec22030c
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idD16E:37F343:101E6CB:159930C:6A4D8826
html-safe-nonce616f6f9a4d4bef593e39d3d1c72b72d72f18a520d9e78cd1f1b4011c0d3d612f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTZFOjM3RjM0MzoxMDFFNkNCOjE1OTkzMEM6NkE0RDg4MjYiLCJ2aXNpdG9yX2lkIjoiOTE3ODE1ODkyMjIwODIxNzEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac95893e1e4f694e0422e61ff22b2f7e6080b1882322d7dde286c2b1534fe319cc
hovercard-subject-tagrepository:18002969
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst
twitter:imagehttps://opengraph.githubassets.com/926593a8c57f4e3405c62dccc40bd192a44162f6b194d0840a5efebd1235989b/roycoding/python-by-example
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/926593a8c57f4e3405c62dccc40bd192a44162f6b194d0840a5efebd1235989b/roycoding/python-by-example
og:image:altGit repository for the "Python Language Features and Tricks You May Not Know Article" at http://sahandsaba.com/thirty-python-language-features-and-tricks-you-may-not-know.html - roycodin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-cache
go-importgithub.com/roycoding/python-by-example git https://github.com/roycoding/python-by-example.git
octolytics-dimension-user_id747219
octolytics-dimension-user_loginroycoding
octolytics-dimension-repository_id18002969
octolytics-dimension-repository_nworoycoding/python-by-example
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id17758943
octolytics-dimension-repository_parent_nwosahands/python-by-example
octolytics-dimension-repository_network_root_id17758943
octolytics-dimension-repository_network_root_nwosahands/python-by-example
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Froycoding%2Fpython-by-example%2Fblob%2Fmaster%2Fpython-by-example.rst
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Froycoding%2Fpython-by-example%2Fblob%2Fmaster%2Fpython-by-example.rst
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=roycoding%2Fpython-by-example
Reloadhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst
Reloadhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst
Reloadhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst
roycoding https://github.com/roycoding
python-by-examplehttps://github.com/roycoding/python-by-example
sahands/python-by-examplehttps://github.com/sahands/python-by-example
Notifications https://github.com/login?return_to=%2Froycoding%2Fpython-by-example
Fork 0 https://github.com/login?return_to=%2Froycoding%2Fpython-by-example
Star 1 https://github.com/login?return_to=%2Froycoding%2Fpython-by-example
Code https://github.com/roycoding/python-by-example
Pull requests 0 https://github.com/roycoding/python-by-example/pulls
Actions https://github.com/roycoding/python-by-example/actions
Projects https://github.com/roycoding/python-by-example/projects
Wiki https://github.com/roycoding/python-by-example/wiki
Security and quality 0 https://github.com/roycoding/python-by-example/security
Insights https://github.com/roycoding/python-by-example/pulse
Code https://github.com/roycoding/python-by-example
Pull requests https://github.com/roycoding/python-by-example/pulls
Actions https://github.com/roycoding/python-by-example/actions
Projects https://github.com/roycoding/python-by-example/projects
Wiki https://github.com/roycoding/python-by-example/wiki
Security and quality https://github.com/roycoding/python-by-example/security
Insights https://github.com/roycoding/python-by-example/pulse
https://github.com/roycoding/python-by-example
python-by-examplehttps://github.com/roycoding/python-by-example/tree/master
Historyhttps://github.com/roycoding/python-by-example/commits/master/python-by-example.rst
https://github.com/roycoding/python-by-example/commits/master/python-by-example.rst
python-by-examplehttps://github.com/roycoding/python-by-example/tree/master
Rawhttps://github.com/roycoding/python-by-example/raw/refs/heads/master/python-by-example.rst
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#30-python-language-features-and-tricks-you-may-not-know-about
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#1introduction
table of contentshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#table-of-contents
Roy Keyeshttp://roycoding.github.io
https://github.com/sahands/python-by-examplehttps://github.com/sahands/python-by-example
http://redd.it/1zv3q3http://redd.it/1zv3q3
https://news.ycombinator.com/item?id=7365410https://news.ycombinator.com/item?id=7365410
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#11unpacking
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#12unpacking-for-swapping-variables
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#13extended-unpacking-python-3-only
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#14negative-indexing
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#15list-slices-astartend
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#16list-slices-with-negative-indexing
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#17list-slices-with-step-astartendstep
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#18list-slices-with-negative-step
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#19list-slice-assignment
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#110naming-slices-slicestart-end-step
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#111iterating-over-list-index-and-value-pairs-enumerate
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#112iterating-over-dictionary-key-and-value-pairs-dictiteritems
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#113zipping-and-unzipping-lists-and-iterables
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#114grouping-adjacent-list-items-using-zip
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#115sliding-windows-n-grams-using-zip-and-iterators
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#116inverting-a-dictionary-using-zip
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#117flattening-lists
documentationhttp://docs.python.org/2.7/library/functions.html#sum
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#118generator-expressions
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#119dictionary-comprehensions
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#120inverting-a-dictionary-using-a-dictionary-comprehension
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#121named-tuples-collectionsnamedtuple
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#122inheriting-from-named-tuples
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#123sets-and-set-operations
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#124multisets-and-multiset-operations-collectionscounter
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#125most-common-elements-in-an-iterable-collectionscounter
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#126double-ended-queue-collectionsdeque
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#127double-ended-queue-with-maximum-length-collectionsdeque
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#128ordered-dictionaries-collectionsordereddict
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#129default-dictionaries-collectionsdefaultdict
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#130using-default-dictionaries-to-represent-simple-trees
https://gist.github.com/hrldcpr/2012250https://gist.github.com/hrldcpr/2012250
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#131mapping-objects-to-unique-counting-numbers-collectionsdefaultdict
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#132largest-and-smallest-elements-heapqnlargest-and-heapqnsmallest
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#133cartesian-products-itertoolsproduct
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#134combinations-and-combinations-with-replacement-itertoolscombinations-and-itertoolscombinations_with_replacement
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#135permutations-itertoolspermutations
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#136chaining-iterables-itertoolschain
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#137grouping-rows-by-a-given-key-itertoolsgroupby
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#138start-a-static-http-server-in-any-directory
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#139learn-the-zen-of-python
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#140use-c-style-braces-instead-of-indentation-to-denote-scopes
https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#2table-of-contents
1   Introductionhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#introduction
1.1   Unpackinghttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#unpacking
1.2   Unpacking for swapping variableshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#unpacking-for-swapping-variables
1.3   Extended unpacking (Python 3 only)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#extended-unpacking-python-3-only
1.4   Negative indexinghttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#negative-indexing
1.5   List slices (a[start:end])https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#list-slices-a-start-end
1.6   List slices with negative indexinghttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#list-slices-with-negative-indexing
1.7   List slices with step (a[start:end:step])https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#list-slices-with-step-a-start-end-step
1.8   List slices with negative stephttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#list-slices-with-negative-step
1.9   List slice assignmenthttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#list-slice-assignment
1.10   Naming slices (slice(start, end, step))https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#naming-slices-slice-start-end-step
1.11   Iterating over list index and value pairs (enumerate)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#iterating-over-list-index-and-value-pairs-enumerate
1.12   Iterating over dictionary key and value pairs (dict.iteritems)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#iterating-over-dictionary-key-and-value-pairs-dict-iteritems
1.13   Zipping and unzipping lists and iterableshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#zipping-and-unzipping-lists-and-iterables
1.14   Grouping adjacent list items using ziphttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#grouping-adjacent-list-items-using-zip
1.15   Sliding windows (n-grams) using zip and iteratorshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#sliding-windows-n-grams-using-zip-and-iterators
1.16   Inverting a dictionary using ziphttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#inverting-a-dictionary-using-zip
1.17   Flattening lists:https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#flattening-lists
1.18   Generator expressionshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#generator-expressions
1.19   Dictionary comprehensionshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#dictionary-comprehensions
1.20   Inverting a dictionary using a dictionary comprehensionhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#inverting-a-dictionary-using-a-dictionary-comprehension
1.21   Named tuples (collections.namedtuple)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#named-tuples-collections-namedtuple
1.22   Inheriting from named tuples:https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#inheriting-from-named-tuples
1.23   Sets and set operationshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#sets-and-set-operations
1.24   Multisets and multiset operations (collections.Counter)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#multisets-and-multiset-operations-collections-counter
1.25   Most common elements in an iterable (collections.Counter)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#most-common-elements-in-an-iterable-collections-counter
1.26   Double-ended queue (collections.deque)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#double-ended-queue-collections-deque
1.27   Double-ended queue with maximum length (collections.deque)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#double-ended-queue-with-maximum-length-collections-deque
1.28   Ordered dictionaries (collections.OrderedDict)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#ordered-dictionaries-collections-ordereddict
1.29   Default dictionaries (collections.defaultdict)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#default-dictionaries-collections-defaultdict
1.30   Using default dictionaries to represent simple treeshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#using-default-dictionaries-to-represent-simple-trees
1.31   Mapping objects to unique counting numbers (collections.defaultdict)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#mapping-objects-to-unique-counting-numbers-collections-defaultdict
1.32   Largest and smallest elements (heapq.nlargest and heapq.nsmallest)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#largest-and-smallest-elements-heapq-nlargest-and-heapq-nsmallest
1.33   Cartesian products (itertools.product)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#cartesian-products-itertools-product
1.34   Combinations and combinations with replacement (itertools.combinations and itertools.combinations_with_replacement)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#combinations-and-combinations-with-replacement-itertools-combinations-and-itertools-combinations-with-replacement
1.35   Permutations (itertools.permutations)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#permutations-itertools-permutations
1.36   Chaining iterables (itertools.chain)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#chaining-iterables-itertools-chain
1.37   Grouping rows by a given key (itertools.groupby)https://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#grouping-rows-by-a-given-key-itertools-groupby
1.38   Start a static HTTP server in any directoryhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#start-a-static-http-server-in-any-directory
1.39   Learn the Zen of Pythonhttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#learn-the-zen-of-python
1.40   Use C-Style Braces Instead of Indentation to Denote Scopeshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#use-c-style-braces-instead-of-indentation-to-denote-scopes
2   Table of contentshttps://github.com/roycoding/python-by-example/blob/master/python-by-example.rst#id1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.