Book description
Python Programming for Raspberry Pi®
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!
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. He has published numerous Linux and open source books, and is an online instructor for web programming and Linux courses used by colleges across the United States. His books include Ubuntu Linux Secrets; Linux for Dummies, Ninth Edition; PostgreSQL 8 for Windows; and Professional Linux Programming.
Christine Bresnahan began working as a systems administrator more than 25 years ago. Now an Adjunct Professor at Ivy Tech Community College, she teaches Python programming, Linux administration and computer security. She is coauthor of The Linux Bible, Eighth Edition. With Blum, she also coauthored Linux Command Line & Shell Scripting Bible, Second Edition.
Get your Raspberry Pi and choose the right low-cost peripherals
Set up Raspian Linux and the Python programming environment
Learn Python basics, including arithmetic and structured commands
Master Python 3 lists, tuples, diction-aries, sets, strings, files, and modules
Reuse the same Python code in multiple locations with functions
Manipulate string data efficiently with regular expressions
Practice simple object-oriented programming techniques
Use exception handling to make your code more reliable
Program modern graphical user interfaces with Raspberry Pi and OpenGL
Create Raspberry Pi games with the PyGame library
Learn network, web, and database techniques you can also use in business software
Write Python scripts that send email
Interact with other devices through Raspberry Pi’s GPIO interface
Walk through example Raspberry Pi projects that inspire you to do even more
On the Web:
Register your book at informit.com/title/9780672337642 for access to all code examples from the book, as well as update and corrections as they become available.
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- About the Authors
- Dedication
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
-
Part I: Python Programming on the Raspberry Pi
- Hour 1. Setting Up the Raspberry Pi
- Hour 2. Understanding the Raspbian Linux Distribution
-
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
- Hour 5. Using Arithmetic in Your Programs
- Hour 6. Controlling Your Program
- Hour 7. Learning About Loops
-
Part III: Advanced Python
- Hour 8. Using Lists and Tuples
- Hour 9. Dictionaries and Sets
- Hour 10. Working with Strings
- Hour 11. Using Files
- Hour 12. Creating Functions
- Hour 13. Working with Modules
- Hour 14. Exploring the World of Object-Oriented Programming
- Hour 15. Employing Inheritance
- Hour 16. Regular Expressions
- Hour 17. Exception Handling
-
Part IV: Graphical Programming
- Hour 18. GUI Programming
- Hour 19. Game Programming
-
Part V: Business Programming
- Hour 20. Using the Network
- Hour 21. Using Databases in Your Programming
- Hour 22. Web Programming
-
Part VI: Raspberry Pi Python Projects
- Hour 23. Creating Basic Pi/Python Projects
- Hour 24. Working with Advanced Pi/Python Projects
- Appendixes
- Index
- Code Snippets
Product information
- Title: Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours, Second Edition
- Author(s):
- Release date: December 2015
- Publisher(s): Sams
- ISBN: 9780134389585
You might also like
book
Python Programming with Raspberry Pi
Become a master of Python programming using the small yet powerful Raspberry Pi Zero About This …
book
Learn Raspberry Pi Programming with Python: Learn to Program on the World's Most Popular Tiny Computer
Learn how to program your nifty new $35 computer to make a web spider, a weather …
book
Python Programming for Arduino
Develop practical Internet of Things prototypes and applications with Arduino and Python In Detail The future …
book
Raspberry Pi 3 Cookbook for Python Programmers - Third Edition
A recipe-based guide to programming your Raspberry Pi 3 using Python About This Book Leverage the …