Python QuickStart Guide The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications.
Learn Python fundamentals that can be used in any programming setting - use the guidance in this book to program your own game in a unique and practical Python learning experience.
Saved in:
Online Access: |
Full text (MCPHS users only) |
---|---|
Main Author: | |
Format: | Electronic eBook |
Language: | English |
Published: |
Albany :
ClydeBank Media LLC,
2023
|
Series: | QuickStart Guide
|
Subjects: | |
Local Note: | ProQuest Ebook Central |
Table of Contents:
- Cover Page
- Title Page
- Dedication
- Contents
- Introduction
- It Was a Dark and Stormy Night
- What Is Python?
- What Is Programming?
- What We'll Cover in This Book
- How to Use This Book
- Example Code
- What You'll Need
- Operating System and Python Version Notes
- Getting Ready
- Visual Studio Code Walk-Through
- Part I
- Getting Started with Python
- | 1 | Getting to Know Python
- Before Our First Line of Code
- Hello, World!
- Working with Variables
- Strings
- Numbers
- A Few Comments
- Newlines
- What's in a Name?
- ClydeBank Coffee Shop: Our First Cup
- | 2 | Understanding Python Data Structures
- Lists
- Tuples
- Sets
- Dictionaries
- Boolean Variables
- Combining Data Structures
- Picking the Right Data Structure
- ClydeBank Coffee Shop: Starting the Grind
- | 3 | Controlling Program Flow
- Logical Comparisons
- Nested Comparisons
- Loops
- Number-Guessing Game
- ClydeBank Coffee Shop Simulator: The Circle of Life
- | 4 | Handling Errors
- Exceptions
- Mopping Up the Mess with Finally
- ClydeBank Coffee Shop: Spilt Milk
- Part II
- Functions and Classes
- | 5 | Creating Reusable Tasks with Functions
- Our First Function
- Passing Values and Returning a Result
- Modifying Arguments
- Default Arguments
- Keyword Arguments
- Arbitrary Arguments
- Scope
- Generator Functions
- ClydeBank Coffee Shop: Our First Major Refactor
- | 6 | Classes
- The Hello World Class
- Instance Variables
- Scope in Classes
- Object Lifecycle
- Properties and Private Variables
- Inches to Centimeters
- ClydeBank Coffee Shop: Our Second Refactor
- | 7 | Inheritance and Design Patterns
- Parent and Child
- Expanding Child Classes
- Multilevel Inheritance
- Multiple Inheritance
- Introduction to Design Patterns
- A Fantasy World
- | 8 | Saving Time with Dataclasses
- Automatic Instance Variables
- Dataclass Features
- Dataclasses Compatibility
- | 9 | Reusing Code with Modules and Packages
- Namespaces
- Importing Modules
- Creating Your Own Module
- Standard Modules
- Packages
- ClydeBank Coffee Shop: Modularizing the Game
- Part III
- Python in Action
- | 10 | Advanced Strings
- Standard String Operations
- Regular Expressions
- String Formatting
- Data Compression
- ClydeBank Coffee Shop: Inventory Woes
- | 11 | Math in Python
- Integer Math
- Floating-Point Math
- Percentages
- Statistical Math
- Date and Time
- Counting the Days
- ClydeBank Coffee Shop: A More Accurate Simulation
- | 12 | Input and Output
- Disk I/O
- Standard I/O
- Serialization with Pickle
- ClydeBank Coffee Shop: Saving Your Game
- | 13 | The Internet
- Fetching a Web Page
- Saving a Web Page
- Sending an Email
- | 14 | Debugging Python Code
- Logging
- Debugging in Visual Studio Code
- Part IV
- Advanced Python
- | 15 | Developing Websites
- web.py
- Flask
- Connecting to a Database
- Django
- JSON
- | 16 | Interfacing with SQLite
- The sTunes Database
- Installation