GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pycollege/python-by-example: A practical, example-driven guide to learning Python with clear explanations and real coding tasks.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
lessons
lessons
 
 
source
source
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Python by Example

Python is a versatile, readable programming language ideal for beginners and experts alike. Please read the official documentation to learn more.

Python by Example is a hands-on introduction to Python using annotated example programs. Check out the first example or browse the full list below.

Unless stated otherwise, examples assume Python 3.10 or later. Try to upgrade to the latest version if something isn't working.

Table of Contents

Foundations

  • Hello World
  • Values
  • Variables
  • Constants
  • For Loops
  • While Loops
  • If/Else
  • Match
  • Break and Continue

Data Structures

  • Lists
  • Slicing
  • Tuples
  • Dictionaries
  • Sets
  • Sorting
  • Collections

Functions

  • Functions
  • Multiple Return Values
  • Variadic Functions
  • Lambdas
  • Map and Filter
  • Closures
  • Scope
  • Recursion
  • Decorators

Iteration and Comprehensions

  • Range and Enumerate
  • Comprehensions
  • Generators

Object-Oriented

  • Classes
  • Methods
  • Inheritance
  • Properties
  • Dataclasses
  • Enums
  • Type Hints

Error Handling

  • Exceptions
  • Custom Exceptions
  • Context Managers

Modules and Packages

  • Modules
  • Packages

Async

  • Async Basics
  • Async Concurrency
  • Async Queues

Strings and Formatting

  • Strings
  • String Formatting
  • Regular Expressions

Data and Serialization

  • JSON
  • JSON Files
  • CSV Files

Date and Time

  • Time
  • Time Formatting

File I/O

  • Reading Files
  • Writing Files
  • File Paths
  • Directories
  • Temporary Files

Command Line

  • Command-Line Arguments
  • Argparse
  • Subprocess
  • Environment Variables

Testing and Tooling

  • Testing
  • Logging

Networking

  • HTTP Client
  • HTTP Server

Misc

  • Random Numbers
  • Exit

Licensed under CC BY 4.0.

by Dariush Abbasi | source

About

A practical, example-driven guide to learning Python with clear explanations and real coding tasks.

Topics

awesome-pythonpythonpython-basicspython-bookpython-bookspython-by-examplepython-by-examplespython-examplepython-examplespython-learningpython-scriptpython-tutorialpython3

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

104 stars

Watchers

12 watching

Forks

14 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.