1.
All About Strings
4 Lessons
Learn how to use strings, string methods, slicing, and formatting in Python.
2.
Lists, Tuples and Dictionaries
4 Lessons
Look at essential Python data types: lists, tuples, and dictionaries for foundational programming.
3.
Conditional Statements
6 Lessons
Break apart using if/elif/else, Boolean logic, and input handling for decision-making in Python.
Grasp the fundamentals of Python loops, including for and while loops, for repetitive tasks.
5.
Python Comprehensions
4 Lessons
Dig into Python comprehensions for creating lists, dictionaries, and sets efficiently.
6.
Exception Handling
5 Lessons
Investigate managing errors in Python using try/except, common exceptions, and finally/else statements.
Introduction to Exception HandlingCommon ExceptionsHow to Handle ExceptionsThe finally Statementtry, except, or else!7.
Working with Files
6 Lessons
Master the steps to file handling in Python, including reading, writing, and error management.
Introduction to File HandlingHow to Read a FileHow To Read Files Piece by PieceWriting Files in PythonUsing the with OperatorCatching Errors in file handlingStep through methods of importing Python modules to enhance your programming.
Importing python modulesimport thisUsing from to importImporting Everything!Walk through creating and using Python functions, from arguments to scope and DRY principles.
FunctionsPassing Arguments to a FunctionKeyword Argumentsargs and kwargsA Note on Scope and GlobalsCoding tip: Don't repeat yourselfExamine classes, self, subclasses, and creating instances for effective Python programming.
Introduction to classes in PythonCreating a ClassWhat is self?SubclassesEnhance your skills in Python introspection, utilizing `dir`, `type`, and `help` functions effectively.
Introduction to IntrospectionThe Python TypeThe Python DirPython Help!Solve problems in reading and writing CSV files using Python’s csv module effectively.
What's the CSV ModuleReading a CSV FileWriting a CSV FileSee how to manage application settings with Python's configparser module.
Configuration files and config parserCreating a Config FileHow to Read, Update and Delete OptionsHow to Use InterpolationPractice using Python's logging module to create, configure, and format logs effectively.
Logging in PythonCreating a Simple LoggerHow to log From Multiple Modules (and Formatting too!)Configuring Logs for Work and PleasureLearn how to use the os module to manage directories, files, and environment variables in Python.
Python's os moduleos.nameos.environ, os.getenv() and os.putenv()Directory and file functions in Pythonos.path and related functionsGet started with sending emails in Python using smtplib and email modules.
Sending email in pythonSending Multiple Emails at OnceSend email using the TO, CC and BCC linesAdd an attachment / body using the email module17.
The SQLite Module
4 Lessons
Examine using SQLite within Python, covering database creation, updating, deleting records, and executing queries.
Getting started with SQLite in pythonHow to Create a Database and INSERT Some DataUpdating and Deleting RecordsBasic SQLite Queries18.
The subprocess Module
4 Lessons
Apply your skills to manage processes using Python's subprocess module efficiently.
Python's subprocess moduleThe call functionThe Popen ClassLearning to Communicate with subprocessTake a closer look at Python's sys module for system-specific parameters and functions.
Python's sys module20.
The threading module
2 Lessons
Simplify complex topics like Python threading and creating responsive threaded downloaders.
Threads in PythonWriting a Threaded Downloader21.
Working with Dates and Time
3 Lessons
Master working with Python's datetime and time modules for comprehensive date and time handling.
Date and time in PythonThe datetime ModuleThe time ModuleLearn how to use Python's xml module for parsing, creating, and editing XML files.
Introduction to xml moduleWorking with minidomParsing with ElementTreeHow to Create XML with ElementTreeHow to Edit XML with ElementTreeHow to Parse XML with ElementTree23.
The Python Debugger
4 Lessons
Get started with Python's pdb module to debug efficiently using breakpoints and stepping through code.
Debugger module in PythonHow to Start the DebuggerStepping Through the CodeSetting breakpointsExamine how Python decorators modify function behavior, add logging, and manage class attributes.
Python DecoratorsA Simple FunctionCreating a Logging DecoratorBuilt-in DecoratorsReplacing Setters and Getters with a Python propertyApply your skills to leveraging lambda functions for concise, efficient coding in Python projects.
Lambda statement in PythonTkinter + lambdaTake a closer look at identifying and optimizing performance bottlenecks using Python's cProfile.
Introduction to Code ProfilingProfiling Your Code with cProfile27.
An Intro to Testing
4 Lessons
Investigate testing Python code using doctest and unittest for robust and accurate programming.
doctest and unittestTesting with doctestTest Driven Development with unittestOther Notes28.
Installing Modules
5 Lessons
Master the steps to installing Python packages using source, easy_install, and pip efficiently.
Introduction to Installing packagesInstalling from SourceUsing easy\_installUsing pipA Note on DependenciesLearn how to use ConfigObj for managing and validating Python configuration files effectively.
configobj in PythonUsing a configspec30.
Parsing XML with lxml
5 Lessons
Grasp the fundamentals of utilizing lxml for XML parsing and creation in Python.
What are we learning in this chapter?Parsing XML with lxmlParsing the Book ExampleParsing XML with lxml.objectifyCreating XML with lxml.objectify31.
Python Code Analysis
3 Lessons
Work your way through enhancing Python code quality using pylint and pyflakes analysis tools.
pylintAnalyzing Your CodeGetting Started with pyflakes32.
The requests package
2 Lessons
Break down complex ideas about using the requests package for HTTP requests and web forms.
What is a 'requests' package?How to Submit a Web FormDive into SQLAlchemy, exploring database creation, data manipulation, and executing queries with Python.
SQLAlchemy in PythonHow to Create a DatabaseHow to Insert / Add Data to Your TablesHow to Modify Records with SQLAlchemyHow to Delete Records in SQLAlchemyThe Basic SQL Queries of SQLAlchemySimplify complex topics on setting up and managing Python virtual environments and dependencies.
Virtual environmentsCreating a Virtual Environment35.
Creating Modules and Packages
3 Lessons
Master the steps to create and organize Python modules and packages effectively.
Introduction to Creating Modules & PackagesHow to Create a Python ModuleHow to Create a Python Package36.
How to Add Your Code to PyPI
4 Lessons
Learn how to use setuptools and distutils to upload Python packages to PyPI.
What's this chapter about?Creating a setup.py FileRegistering PackagesUploading Packages to PyPIUnpack the core of Python eggs for package distribution and management in Python.
Introduction to Python eggsCreating an eggExamine the significance, creation, and installation of Python wheel files.
Introduction to Python wheelCreating a wheelInstalling a Python wheelGrasp the fundamentals of creating Windows executables from Python applications using py2exe.
Introduction to py2exeCreating a Simple GUIThe py2exe setup.py fileCreating an Advanced setup.py FileDig into creating cross-platform Python binaries with bbfreeze for efficient distribution.
bbfreeze packageGetting Started with bbfreezeUsing bbfreeze's Advanced ConfigurationFollow the process of creating Python executables with cx_Freeze for cross-platform use.
Introduction to cx_FreezeGetting Started with cx_FreezeAdvanced cx_Freeze - Using a setup.py FileMaster creating standalone executables with PyInstaller, handling configurations, and integrating wxPython.
Introduction to PyInstallerGetting Started with PyInstallerPyInstaller and wxPython43.
Creating an Installer
3 Lessons
Try out creating installers with GUI2Exe and Inno Setup, enabling seamless distribution.
Introduction to Creating an InstallerGetting Started with GUI2ExeLet's Make an Installer!