
C H A P T E R 1 2
A N I N T R O D U C T I O N T O P Y T H O N
199
A full copy of the program listing for the IRC user list is included in Appendix A, “Python
Recipes”, and on the Raspberry Pi User Guide website at
www.wiley.com/go/
raspberrypiuserguide2e
. Downloading the source code from the website will save you
some typing, but entering the code by hand is a good way of ensuring that you understand
what each section does.
Further Reading
I hope this chapter has given you a taste of what you can do with Python. It’s far from exhaus-
tive—to do the language full justice would take a considerably larger book. However, there
are plenty of resources out there for learning more about the Python language, including the
following:
❍
The official
Beginner’s Guide to Python
, which
you
can access at
http://wiki.
python.org/moin/BeginnersGuide
.
❍
A free, interactive tutorial that runs entirely in your browser is available for download
at
http://www.learnpython.org/
.
❍
Zed A. Shaw’s
Learn Python The Hard Way
(Shavian Publishing, 2012) offers great
insight into best-practice coding for Python, and despite the name, it’s suitable for
beginners. This book is commercially available, or you can read it for free at
http://
learnpythonthehardway.org/
.
❍
Although somewhat outdated and since replaced by
Dive Into Python 3
(APRESS, 2009),
Dive Into Python
by Mark Pilgrim (APRESS, 2004) does a good job of addressing the
basics of writing programs in Python. It’s available for free download at
http://www.
diveintopython.net/
or for purchase in printed format from all good booksellers.
❍
If you prefer hands-on learning with other interested individuals, a list of local Python
User Groups—sometimes called PIGgies—can be found at
http://wiki.python.
org/moin/LocalUserGroups
.
❍
For learning pygame, Al Sweigart’s book
Making Games with Python & Pygame
(CreateSpace, 2012) is a great introduction with practical examples. You can purchase
the hardcopy book or downloaded it for free at
http://inventwithpython.com/
.
Summary of Contents for A
Page 1: ......
Page 2: ......
Page 3: ...Raspberry Pi User Guide 2nd Edition...
Page 4: ......
Page 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Page 10: ......
Page 26: ...R A S P B E R R Y P I U S E R G U I D E S E C O N D E D I T I O N 10...
Page 28: ......
Page 29: ...Chapter 1 Meet the Raspberry Pi...
Page 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Page 56: ......
Page 57: ...Chapter 3 Linux System Administration...
Page 79: ...Chapter 4 Troubleshooting...
Page 89: ...Chapter 5 Network Configuration...
Page 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Page 122: ......
Page 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Page 140: ......
Page 141: ...Chapter 8 The Pi as a Home Theatre PC...
Page 151: ...Chapter 9 The Pi as a Productivity Machine...
Page 160: ......
Page 161: ...Chapter 10 The Pi as a Web Server...
Page 172: ......
Page 173: ...Chapter 11 An Introduction to Scratch...
Page 189: ...Chapter 12 An Introduction to Python...
Page 216: ......
Page 218: ......
Page 219: ...Chapter 13 Learning to Hack Hardware...
Page 234: ......
Page 235: ...Chapter 14 The GPIO Port...
Page 249: ...Chapter 15 The Raspberry Pi Camera Module...
Page 265: ...Chapter 16 Add on Boards...
Page 280: ......
Page 281: ...Appendix A Python Recipes...
Page 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Page 293: ...Appendix C HDMI Display Modes...