René's URL Explorer Experiment


Title: GitHub - trekhleb/learn-python: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations.

Open Graph Title: GitHub - trekhleb/learn-python: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations.

X Title: GitHub - trekhleb/learn-python: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations.

Description: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations. - trekhleb/learn-python

Open Graph Description: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations. - trekhleb/learn-python

X Description: 📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations. - trekhleb/learn-python

Opengraph URL: https://github.com/trekhleb/learn-python

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:2630fbfa-293b-740a-4d5c-00730cb83ffb
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idE1CA:309065:2A47119:37B9E42:69646FCA
html-safe-noncec75b2b86a7c588eb0ea42e68411d7a075e13690f27c2ecc1da25e3756e4f84b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUNBOjMwOTA2NToyQTQ3MTE5OjM3QjlFNDI6Njk2NDZGQ0EiLCJ2aXNpdG9yX2lkIjoiMzk4ODk0MzU4OTM2ODY4ODU4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8574034c82dd1c8b82f000426cfaf944e33b98239d6cbbb87db20a8722b65c06
hovercard-subject-tagrepository:146619556
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/trekhleb/learn-python
twitter:imagehttps://repository-images.githubusercontent.com/146619556/010dd080-4d26-11ea-8350-5916fe9db853
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/146619556/010dd080-4d26-11ea-8350-5916fe9db853
og:image:alt📚 Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations. - trekhleb/learn-python
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebaa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5
turbo-cache-controlno-preview
go-importgithub.com/trekhleb/learn-python git https://github.com/trekhleb/learn-python.git
octolytics-dimension-user_id3000285
octolytics-dimension-user_logintrekhleb
octolytics-dimension-repository_id146619556
octolytics-dimension-repository_nwotrekhleb/learn-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id146619556
octolytics-dimension-repository_network_root_nwotrekhleb/learn-python
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
release842eff1d11f899d02b6b3b98fa3ea4860e64b34e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/trekhleb/learn-python#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftrekhleb%2Flearn-python
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2Ftrekhleb%2Flearn-python
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&source=header-repo&source_repo=trekhleb%2Flearn-python
Reloadhttps://github.com/trekhleb/learn-python
Reloadhttps://github.com/trekhleb/learn-python
Reloadhttps://github.com/trekhleb/learn-python
trekhleb https://github.com/trekhleb
learn-pythonhttps://github.com/trekhleb/learn-python
Notifications https://github.com/login?return_to=%2Ftrekhleb%2Flearn-python
Fork 2.9k https://github.com/login?return_to=%2Ftrekhleb%2Flearn-python
Star 17.6k https://github.com/login?return_to=%2Ftrekhleb%2Flearn-python
MIT license https://github.com/trekhleb/learn-python/blob/master/LICENSE
17.6k stars https://github.com/trekhleb/learn-python/stargazers
2.9k forks https://github.com/trekhleb/learn-python/forks
Branches https://github.com/trekhleb/learn-python/branches
Tags https://github.com/trekhleb/learn-python/tags
Activity https://github.com/trekhleb/learn-python/activity
Star https://github.com/login?return_to=%2Ftrekhleb%2Flearn-python
Notifications https://github.com/login?return_to=%2Ftrekhleb%2Flearn-python
Code https://github.com/trekhleb/learn-python
Issues 16 https://github.com/trekhleb/learn-python/issues
Pull requests 20 https://github.com/trekhleb/learn-python/pulls
Actions https://github.com/trekhleb/learn-python/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/trekhleb/learn-python/security
Please reload this pagehttps://github.com/trekhleb/learn-python
Insights https://github.com/trekhleb/learn-python/pulse
Code https://github.com/trekhleb/learn-python
Issues https://github.com/trekhleb/learn-python/issues
Pull requests https://github.com/trekhleb/learn-python/pulls
Actions https://github.com/trekhleb/learn-python/actions
Security https://github.com/trekhleb/learn-python/security
Insights https://github.com/trekhleb/learn-python/pulse
Brancheshttps://github.com/trekhleb/learn-python/branches
Tagshttps://github.com/trekhleb/learn-python/tags
https://github.com/trekhleb/learn-python/branches
https://github.com/trekhleb/learn-python/tags
59 Commitshttps://github.com/trekhleb/learn-python/commits/master/
https://github.com/trekhleb/learn-python/commits/master/
srchttps://github.com/trekhleb/learn-python/tree/master/src
srchttps://github.com/trekhleb/learn-python/tree/master/src
.flake8https://github.com/trekhleb/learn-python/blob/master/.flake8
.flake8https://github.com/trekhleb/learn-python/blob/master/.flake8
.gitignorehttps://github.com/trekhleb/learn-python/blob/master/.gitignore
.gitignorehttps://github.com/trekhleb/learn-python/blob/master/.gitignore
.travis.ymlhttps://github.com/trekhleb/learn-python/blob/master/.travis.yml
.travis.ymlhttps://github.com/trekhleb/learn-python/blob/master/.travis.yml
CODE_OF_CONDUCT.mdhttps://github.com/trekhleb/learn-python/blob/master/CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.mdhttps://github.com/trekhleb/learn-python/blob/master/CODE_OF_CONDUCT.md
LICENSEhttps://github.com/trekhleb/learn-python/blob/master/LICENSE
LICENSEhttps://github.com/trekhleb/learn-python/blob/master/LICENSE
README.es-ES.mdhttps://github.com/trekhleb/learn-python/blob/master/README.es-ES.md
README.es-ES.mdhttps://github.com/trekhleb/learn-python/blob/master/README.es-ES.md
README.mdhttps://github.com/trekhleb/learn-python/blob/master/README.md
README.mdhttps://github.com/trekhleb/learn-python/blob/master/README.md
README.pt-BR.mdhttps://github.com/trekhleb/learn-python/blob/master/README.pt-BR.md
README.pt-BR.mdhttps://github.com/trekhleb/learn-python/blob/master/README.pt-BR.md
README.zh-TW.mdhttps://github.com/trekhleb/learn-python/blob/master/README.zh-TW.md
README.zh-TW.mdhttps://github.com/trekhleb/learn-python/blob/master/README.zh-TW.md
_config.ymlhttps://github.com/trekhleb/learn-python/blob/master/_config.yml
_config.ymlhttps://github.com/trekhleb/learn-python/blob/master/_config.yml
pylintrchttps://github.com/trekhleb/learn-python/blob/master/pylintrc
pylintrchttps://github.com/trekhleb/learn-python/blob/master/pylintrc
requirements.txthttps://github.com/trekhleb/learn-python/blob/master/requirements.txt
requirements.txthttps://github.com/trekhleb/learn-python/blob/master/requirements.txt
READMEhttps://github.com/trekhleb/learn-python
Code of conducthttps://github.com/trekhleb/learn-python
MIT licensehttps://github.com/trekhleb/learn-python
https://github.com/trekhleb/learn-python#playground-and-cheatsheet-for-learning-python
IS BEING ATTACKEDhttps://war.ukraine.ua/
Serhiy Prytula Charity Foundationhttps://prytulafoundation.org/en/
Come Back Alive Charity Foundationhttps://savelife.in.ua/en/donate-en/
National Bank of Ukrainehttps://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi
war.ukraine.uahttps://war.ukraine.ua/
MFA of Ukrainehttps://twitter.com/MFA_Ukraine
https://travis-ci.org/trekhleb/learn-python
topicshttps://github.com/trekhleb/learn-python#table-of-contents
Portuguêshttps://github.com/trekhleb/learn-python/blob/master/README.pt-BR.md
Españolhttps://github.com/trekhleb/learn-python/blob/master/README.es-ES.md
Traditional Chinesehttps://github.com/trekhleb/learn-python/blob/master/README.zh-TW.md
test it outhttps://github.com/trekhleb/learn-python#testing-the-code
lint the codehttps://github.com/trekhleb/learn-python#linting-the-code
standard Python statements and constructionshttps://github.com/trekhleb/learn-python#table-of-contents
Interactive Machine Learning Experimentshttps://github.com/trekhleb/machine-learning-experiments
https://github.com/trekhleb/learn-python#how-to-use-this-repository
Find the topichttps://github.com/trekhleb/learn-python#table-of-contents
Run testshttps://github.com/trekhleb/learn-python#testing-the-code
lint the codehttps://github.com/trekhleb/learn-python#linting-the-code
https://github.com/trekhleb/learn-python#table-of-contents
What is Pythonhttps://github.com/trekhleb/learn-python/blob/master/src/getting_started/what_is_python.md
Python Syntaxhttps://github.com/trekhleb/learn-python/blob/master/src/getting_started/python_syntax.md
Variableshttps://github.com/trekhleb/learn-python/blob/master/src/getting_started/test_variables.py
Arithmetic Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_arithmetic.py
Bitwise Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_bitwise.py
Assignment Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_assigment.py
Comparison Operatorhttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_comparison.py
Logical Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_logical.py
Identity Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_identity.py
Membership Operatorshttps://github.com/trekhleb/learn-python/blob/master/src/operators/test_membership.py
Numbershttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_numbers.py
Stringshttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_strings.py
Listshttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_lists.py
Tupleshttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_tuples.py
Setshttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_sets.py
Dictionarieshttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_dictionaries.py
Type Castinghttps://github.com/trekhleb/learn-python/blob/master/src/data_types/test_type_casting.py
The if statementhttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_if.py
The for statementhttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_for.py
The while statementhttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_while.py
The try statementshttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_try.py
The break statementhttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_break.py
The continue statementhttps://github.com/trekhleb/learn-python/blob/master/src/control_flow/test_continue.py
Function Definitionhttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_definition.py
Scopes of Variables Inside Functionshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_scopes.py
Default Argument Valueshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_default_arguments.py
Keyword Argumentshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_keyword_arguments.py
Arbitrary Argument Listshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_arbitrary_arguments.py
Unpacking Argument Listshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_unpacking_arguments.py
Lambda Expressionshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_lambda_expressions.py
Documentation Stringshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_documentation_string.py
Function Annotationshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_annotations.py
Function Decoratorshttps://github.com/trekhleb/learn-python/blob/master/src/functions/test_function_decorators.py
Class Definitionhttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_class_definition.py
Class Objectshttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_class_objects.py
Instance Objectshttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_instance_objects.py
Method Objectshttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_method_objects.py
Class and Instance Variableshttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_class_and_instance_variables.py
Inheritancehttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_inheritance.py
Multiple Inheritancehttps://github.com/trekhleb/learn-python/blob/master/src/classes/test_multiple_inheritance.py
Moduleshttps://github.com/trekhleb/learn-python/blob/master/src/modules/test_modules.py
Packageshttps://github.com/trekhleb/learn-python/blob/master/src/modules/test_packages.py
Handling Exceptionshttps://github.com/trekhleb/learn-python/blob/master/src/exceptions/test_handle_exceptions.py
Raising Exceptionshttps://github.com/trekhleb/learn-python/blob/master/src/exceptions/test_raise_exceptions.py
Reading and Writinghttps://github.com/trekhleb/learn-python/blob/master/src/files/test_file_reading.py
Methods of File Objectshttps://github.com/trekhleb/learn-python/blob/master/src/files/test_file_methods.py
The pass statementhttps://github.com/trekhleb/learn-python/blob/master/src/additions/test_pass.py
Generatorshttps://github.com/trekhleb/learn-python/blob/master/src/additions/test_generators.py
Serializationhttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_json.py
File Wildcardshttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_glob.py
String Pattern Matchinghttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_re.py
Mathematicshttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_math.py
Dates and Timeshttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_datetime.py
Data Compressionhttps://github.com/trekhleb/learn-python/blob/master/src/standard_libraries/test_zlib.py
Terminal inputhttps://github.com/trekhleb/learn-python/blob/master/src/user_input/test_input.py
https://github.com/trekhleb/learn-python#prerequisites
Python3 installedhttps://realpython.com/installing-python/
venvhttps://docs.python.org/3/library/venv.html
https://github.com/trekhleb/learn-python#testing-the-code
pytesthttps://docs.pytest.org/en/latest/
https://github.com/trekhleb/learn-python#linting-the-code
pylinthttp://pylint.pycqa.org/
flake8http://flake8.pycqa.org/en/latest/
https://github.com/trekhleb/learn-python#pylint
PEP 8https://www.python.org/dev/peps/pep-0008/
More about PyLinthttp://pylint.pycqa.org/
https://github.com/trekhleb/learn-python#flake8
PEP 8https://www.python.org/dev/peps/pep-0008/
More about Flake8http://flake8.pycqa.org/en/latest/
https://github.com/trekhleb/learn-python#author
@trekhlebhttps://trekhleb.dev
python https://github.com/topics/python
programming-language https://github.com/topics/programming-language
learning https://github.com/topics/learning
learning-python https://github.com/topics/learning-python
python3 https://github.com/topics/python3
learning-by-doing https://github.com/topics/learning-by-doing
Readme https://github.com/trekhleb/learn-python#readme-ov-file
MIT license https://github.com/trekhleb/learn-python#MIT-1-ov-file
Code of conduct https://github.com/trekhleb/learn-python#coc-ov-file
Please reload this pagehttps://github.com/trekhleb/learn-python
Activityhttps://github.com/trekhleb/learn-python/activity
17.6k starshttps://github.com/trekhleb/learn-python/stargazers
723 watchinghttps://github.com/trekhleb/learn-python/watchers
2.9k forkshttps://github.com/trekhleb/learn-python/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Ftrekhleb%2Flearn-python&report=trekhleb+%28user%29
Releaseshttps://github.com/trekhleb/learn-python/releases
Packages 0https://github.com/users/trekhleb/packages?repo_name=learn-python
Please reload this pagehttps://github.com/trekhleb/learn-python
Contributors 15https://github.com/trekhleb/learn-python/graphs/contributors
Please reload this pagehttps://github.com/trekhleb/learn-python
Python 100.0% https://github.com/trekhleb/learn-python/search?l=python
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.