+612 9045 4394
 
CHECKOUT
Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours : Sams Teach Yourself in 24 Hours - Richard Blum

Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours

Sams Teach Yourself in 24 Hours

By: Richard Blum (Contribution by), Christine Bresnahan (Contribution by)

Paperback Published: 1st January 2016
ISBN: 9780672337642
Number Of Pages: 624

Share This Book:

Paperback

In Stock
Enter an Australian post code for delivery estimate

Earn 94 Qantas Points
on this Book

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 theatre, 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!

  • Step-by-step instructions carefully walk you through the most common Raspberry Pi Python programming tasks.
  • Quizzes at the end of each chapter help you test your knowledge.
  • By the Way notes present interesting information related to the discussion.
  • Did You Know? tips offer advice or show you easier ways to perform tasks.
  • Watch Out! cautions alert you to possible problems and give you advice on how to avoid them. Richard Blum has administered systems and networks for more than 25 years.

Introduction
Programming with Python
Who Should Read This Book?
Conventions Used in This Book

Part I: Python Programming on the Raspberry Pi

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

Part II: Python Fundamentals

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 Statemen
Adding More Options Using the elif 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

Part III: Advanced Python

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 findall() 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

Part IV: Graphical Programming


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
Part V: Business Programming

HOUR 20: Using the Network
Finding the Python Network Modules
Working with Email Servers
Working with Web Servers
Linking Programs Using Socket Programming
Summary
Q&A
Workshop
HOUR 21: Using Databases in Your Programming
Working with the MySQL Database
Using the PostgreSQL Database
Summary
Q&A
Workshop

HOUR 22: Web Programming
Running a Web Server on the Pi
Programming with the Common Gateway Interface
Expanding Your Python Webpages
Processing Forms
Summary
Q&A
Workshop
Part VI: Raspberry Pi Python Projects

HOUR 23: Creating Basic Pi/Python Projects
Thinking About Basic Pi/Python Projects
Displaying HD Images via Python
Playing Music
Summary
Q&A
Workshop

HOUR 24: Working with Advanced Pi/Python Projects
Exploring the GPIO Interface
Using the RPi.GPIO Module
Controlling GPIO Output
Detecting GPIO Input
Summary
Q&A
Workshop

Appendixes

APPENDIX A: Loading the Raspbian Operating System onto an SD Card
Downloading NOOBS
Verifying NOOBS Checksum
Unpacking the NOOBS Zip File
Formatting the MicroSD Card .
Copying NOOBS to a MicroSD Card
APPENDIX B: Raspberry Pi Models Synopsis
Raspberry Pi 2 Model B
Raspberry Pi 1 Model B+
Raspberry Pi 1 Model A+9
Older Raspberry Pi Models
Index

ISBN: 9780672337642
ISBN-10: 0672337649
Series: Sams Teach Yourself in 24 Hours
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 624
Published: 1st January 2016
Publisher: Pearson Education (US)
Country of Publication: US
Dimensions (cm): 22.86 x 17.78  x 5.08
Weight (kg): 0.95
Edition Number: 2
Edition Type: Revised

Earn 94 Qantas Points
on this Book