Sams teach yourself Python programming for Raspberry Pi in 24 hours / Richard Blum and Christine Breshnahan
- Author:
- Blum, Richard, 1962-
- Additional Titles:
- Teach yourself Python programming for Raspberry Pi in 24 hours and Teach yourself Python programing for Raspberry Pi in twenty-four hours
- Published:
- Indianapolis, Indiana : Sams, [2016]
- Copyright Date:
- ©2016
- Edition:
- Second edition.
- Physical Description:
- xii, 597 pages : illustrations ; 23 cm
- Additional Creators:
- Bresnahan, Christine
- Contents:
- Machine generated contents note: Programming with Python -- Who Should Read This Book? -- Conventions Used in This Book -- Hour 1 Setting Up the Raspberry Pi -- Obtaining a Raspberry Pi -- Acquiring a Raspberry Pi -- Determining the Necessary Peripherals -- Nice Additional Peripherals -- Deciding How to Purchase Peripherals -- Getting Your Raspberry Pi Working -- Troubleshooting Your Raspberry Pi -- Summary -- Q&A -- Workshop -- Hour 2 Understanding the Raspbian Linux Distribution -- Learning About Linux -- Interacting with the Raspbian Command Line -- Interacting with the Raspbian GUI -- The LXDE Graphical Interface -- Summary -- Q&A -- Workshop -- Hour 3 Setting Up a Programming Environment -- Exploring Python -- Checking Your Python Environment -- Installing Python and Tools -- Learning About the Python Interpreter -- Learning About the Python Interactive Shell -- Learning About the Python Development Environment -- Creating and Running Python Scripts -- Knowing Which Tool to Use and When -- Summary -- Q&A -- Workshop -- Hour 4 Understanding Python Basics -- Producing Python Script Output -- Formatting Scripts for Readability -- Understanding Python Variables -- Assigning Value to Python Variables -- Learning About Python Data Types -- Allowing Python Script Input -- Summary -- Q&A -- Workshop -- Hour 5 Using Arithmetic in Your Programs -- Working with Math Operators -- Calculating with Fractions -- Using Complex Number Math -- Getting Fancy with the math Module -- Using the NumPy Math Libraries -- Summary -- Q&A -- Workshop -- Hour 6 Controlling Your Program -- Working with the if Statement -- Grouping Multiple Statements -- Adding Other Options with the else Statement -- Adding More Options Using the el if Statement -- Comparing Values in Python -- Checking Complex Conditions -- Negating a Condition Check -- Summary -- Q&A -- Workshop -- Hour 7 Learning About Loops -- Performing Repetitive Tasks -- Using the for Loop for Iteration -- Using the while Loop for Iteration -- Creating Nested Loops -- Summary -- Q&A -- Workshop -- Hour 8 Using Lists and Tuples -- Introducing Tuples -- Introducing Lists -- Using Multidimensional Lists to Store Data -- Working with Lists and Tuples in Your Scripts -- Creating Lists by Using List Comprehensions -- Working with Ranges -- Summary -- Q&A -- Workshop -- Hour 9 Dictionaries and Sets -- Understanding Python Dictionary Terms -- Exploring Dictionary Basics -- Programming with Dictionaries -- Understanding Python Sets -- Exploring Set Basics -- Obtaining Information from a Set -- Modifying a Set -- Programming with Sets -- Summary -- Q&A -- Workshop -- Hour 10 Working with Strings -- The Basics of Using Strings -- Using Functions to Manipulate Strings -- Formatting Strings for Output -- Summary -- Q&A -- Workshop -- Hour 11 Using Files -- Understanding Linux File Structures -- Managing Files and Directories via Python -- Opening a File -- Reading a File -- Closing a File -- Writing to a File -- Summary -- Q&A -- Workshop -- Hour 12 Creating Functions -- Utilizing Python Functions in Your Programs -- Returning a Value -- Passing Values to Functions -- Handling Variables in a Function -- Using Lists with Functions -- Using Recursion with Functions -- Summary -- Q&A -- Workshop -- Hour 13 Working with Modules -- Introducing Module Concepts -- Exploring Standard Modules -- Learning About Python Modules -- Creating Custom Modules -- Summary -- Q&A -- Workshop -- Hour 14 Exploring the World of Object-Oriented Programming -- Understanding the Basics of Object-Oriented Programming -- Defining Class Methods -- Sharing Your Code with Class Modules -- Summary -- Q&A -- Workshop -- Hour 15 Employing Inheritance -- Learning About the Class Problem -- Understanding Subclasses and Inheritance -- Using Inheritance in Python -- Using Inheritance in Python Scripts -- Summary -- Q&A -- Workshop -- Hour 16 Regular Expressions -- What Are Regular Expressions? -- Working with Regular Expressions in Python -- The match() Function -- The search() Function -- The Tindall() and finditer () Functions -- Defining Basic Patterns -- Using Advanced Regular Expressions Features -- Working with Regular Expressions in Your Python Scripts -- Summary -- Q&A -- Workshop -- Hour 17 Exception Handling -- Understanding Exceptions -- Handling Exceptions -- Handling Multiple Exceptions -- Summary -- Q&A -- Workshop -- Hour 18 GUI Programming -- Programming for a GUI Environment -- Examining Python GUI Packages -- Using the tkinter Package -- Exploring the tkinter Widgets -- Summary -- Q&A -- Workshop -- Hour 19 Game Programming -- Understanding Game Programming -- Learning About Game Tools -- Setting Up the PyGame Library -- Using PyGame -- Learning More About PyGame -- Dealing with PyGame Action -- Summary -- Q&A -- Workshop -- Hour 20 Using the Network -- Finding the Python Network Modules -- Working with Email Servers -- Working with Web Servers -- Linking Programs Using Socket Programming -- Summa.520. "In just 24 sessions of one hour or less, Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours teaches you Python programming on Raspberry Pi, so you can start creating awesome projects for home automation, home theater, gaming, and more. Using this book's straight-forward, step-by-step approach, you'll move from the absolute basics all the way through network and web connections, multimedia, and even connecting with electronic circuits for sensing and robotics. Every lesson and case study application builds on what you've already learned, giving you a rock-solid foundation for real-world success!" --
- Summary:
- "In just 24 sessions of one hour or less, Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours teaches you Python programming on Raspberry Pi, so you can start creating awesome projects for home automation, home theater, gaming, and more. Using this book's straight-forward, step-by-step approach, you'll move from the absolute basics all the way through network and web connections, multimedia, and even connecting with electronic circuits for sensing and robotics. Every lesson and case study application builds on what you've already learned, giving you a rock-solid foundation for real-world success!" --
- Subject(s):
- ISBN:
- 0672337649
9780672337642 - Bibliography Note:
- Includes index.
View MARC record | catkey: 17038079