Home > Store > Open Source > Python

larger cover

Add To My Wish List

Sams Teach Yourself Python in 24 Hours

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Reviews
  • Sample Content

Annotation

Sams Teach Yourself Python in 24 Hours presents 24 hands-on, one-hour lessons that guide you through all the steps needed to learn the Python programming language. The lessons begin with basic Python syntax and language features, and move up through object oriented design and programming. The book ends with a series of chapters covering GUI programming (using Tkinter), Python as a system administration tool, and Python as a programming language for CGI applications.

PTR Overview

As part of the Sams Teach Yourself in 24 Hours series, this book will present 24 hands-on, one-hour lessons that will guide the reader through all the steps needed to learn the Python programming language. The lessons begin with basic Python syntax and language features, and move up through object oriented design and programming. The book ends with a series of chapters covering GUI programming (using Tkinter), Python as a system administration tool, and Python as a programming language for CGI applications.

Audience

There is a consensus in the Python user community that a basic, introductory level book is needed; and in fact it is widely held that Python is an ideal choice for a first programming language. Specific types of users range from: Users adopting Linux and looking for an easy, powerful way to unleash the full potential of Linux, Web developers looking for a modern object-oriented scripting language for CGI applications, and Users or administrators of any operating system interested in creating portable utilities and applications.

PTR Bullets

  • Python is used extensively throughout the Linux community--it is included in every Linux distribution
  • Python is an excellent language for learning programming, and this will be the only Python book on the market written expressly for the beginning Python programmer
  • The author is a well-known and respected member of the Python community who is uniquely suited to present this material

User Level

Easy/Beginner

Product Author Bios

Ivan Van Laningham is a senior software engineer for Callware Technologies, Inc. where he provides Web server and Unix assistance and consultation as well as working on GUI design and programming using various languages, including Python. He was a presenter at the Seventh International Python Conference and at the O'Reilly Python Conference.

Sams Teach Yourself Python in 24 Hours presents 24 hands-on, one-hour lessons that guide you through all the steps needed to learn the Python programming language. The lessons begin with basic Python syntax and language features, and move up through object oriented design and programming. The book ends with a series of chapters covering GUI programming (using Tkinter), Python as a system administration tool, and Python as a programming language for CGI applications.

Technology

While it is often compared to Perl based on its power and flexibility, Python is in many ways superior to Perl. Python was designed from the beginning as an object-oriented language, unlike Perl where such features are a later (and poorly integrated) addition. Python is more portable, and it also runs on more platforms than Perl. Python is extremely powerful, has a clean and elegant syntax, and tends to enforce, or at least reward, a clear and understandable programming style. Because its syntax is simple, clear and powerful, it is an excellent first choice for a programming language. Red Hat Linux uses Python for its install procedure as well as many administration tools. Python is the primary programming language used by many large-scale Web sites like Infoseek and Four11. NASA's Johnson Space Center uses Python in its Integrated Planning System as the standard scripting language. Python has even been integrated into software products such as Caligari's TrueSpace.

Customer Reviews

14 of 14 people found the following review helpful
2.0 out of 5 stars You'll need more than 24 hours, May 16, 2000
By 
Maria Erb "redwing" (Keene, New Hampshire) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: Sams Teach Yourself Python in 24 Hours (Teach Yourself -- 24 Hours) (Paperback)
I bought this book hoping it would be a gentle yet thoroughintroduction to the Python language which I had hoped to use for webapplications. And the book started out along that track. Easy to read and lively and with lots of examples. The big problem I have with the book (and I only made it to hour 12 before I had to quit) is that there is no way for the reader to practice and learn the concepts in the book. There aren't any practice exercises or drills. There are screen dumps of code, but I didn't find the examples useful since I was looking for web-based applications rather than more mathematical types of examples. The examples also get very big and complex early on in the book. Experienced programmers will probably be able to follow along, but then they might not be buying this book in the first place. I'm still looking for a good, step-by-step way to learn Python.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 10 people found the following review helpful
4.0 out of 5 stars Well written for a beginner book, May 3, 2000
By A Customer
This review is from: Sams Teach Yourself Python in 24 Hours (Teach Yourself -- 24 Hours) (Paperback)
What I like: - Easy to understand. The author did a good job. - Casual writing style. (You learn a thing or two about Zen.) - Includes enough ref info on its topics, but not too detailed/technical.

What I don't like: the editorial works. - Sample codes/output are presented as computer screen dumps. The color (gray scale) is hard to read, and characters are small. - The book description touts CGI as one of the book topics, but it's only covered lightly and briefly to add much value. - Chapter/hour 1 and 2 should be combined as 1. Too brief & too light.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 11 people found the following review helpful
1.0 out of 5 stars Need an Aneurysm, this book should do the trick..., February 2, 2003
By A Customer
This review is from: Sams Teach Yourself Python in 24 Hours (Teach Yourself -- 24 Hours) (Paperback)
...this book is garbage, and that's exactly where the book is now. In the garbage. The author needs to go back to school and get educated in the english language. He is very knowledgable in programming, he lacks the ability to put his thoughts in english that others can understand. He stops his thought half way through sentences. He has run on sentences, typo's, combined with the fact that he NEVER explains a single piece of code in the book completely, he famous lines in the book are "we'll discuss that later" which never happens, and "do you remember this?" NO, BECAUSE YOU NEVER EXPLAINED IT!!! Very frustrating, and i'm an undergrad student that has been punching out code in Java for 3 years, and I'm totally lost, how is that possible? 2 simple words for this book, don't bother. Get this book, it's much better: ISBN# 0-13-026036-3 - Core Python Programming by Wesley J. Chun
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 15 customer reviews...

Table of Contents

Introduction.

I. PYTHON MIND, BEGINNER'S MIND.

Hour 1. What Is Python?
Why Program? Why Program in Python? The History of Python. goto Considered Harmful. What Python Is and Is Not Good At. Summary. Workshop. Exercises.

Hour 2. The Python Interpreter.
The Interpreter: A Minimalist Guide. Interactivity and Environment. Running Scripts. Hello, Python! Summary. Workshop. Exercises.

Hour 3. Basic Arithmetic with Python.
Addition and Subtraction. Multiplication, Division, and Modulo. Rounding, floor(), and ceil(). Exponentiation. Parenthesization. "Gotchas" and Other Miscellaneous Topics. Summary. Workshop. Exercises.

Hour 4. Variables and Control Flow.
Variables. if, elif, and else. for and range(). while. break, continue, and pass. A Complete Program. Summary. Workshop. Exercises.

Hour 5. Basic Data Types I: The Numeric Data Types.
Data Types. Numeric Types. Integer. Long Integer. Floating point. Complex. Summary. Workshop. Exercises.

Hour 6. Basic Data Types II: The Sequence and Dictionary Data Types.
Sequence Data Types. Strings. Tuples. Lists. Dictionaries. Arrays. Summary. Workshop. Exercises.

Hour 7. Functions and Modules.
What Do Functions Do? Modules. Summary. Workshop. Exercises.

Hour 8. Useful Miscellany.
Three Functions and a Statement. Printing and Formatting. File Objects. Try and Except. Summary. Workshop. Exercises.

II. OBJECTS IN MIRROR ARE CLOSER THAN THEY APPEAR.


Hour 9. Objects at Rest.
Everything Is an Object. Variables Are References to Objects. Object-Oriented Programming. Summary. Workshop. Exercises.

Hour 10. Defining Objects.
First Class. Modifying the Class. A Class Divided. Changing the Name of Arkansas. Summary. Workshop. Exercises.

Hour 11. Object-Oriented Programming Concepts.
Identity. Encapsulation. Namespaces and Scope. Summary. Workshop. Exercises.

Hour 12. More OOP Concepts.
Data Hiding with "Private" Variables. Polymorphism. Multiple Inheritance. Summary. Workshop. Exercises.

Hour 13. Special Class Methods in Python.
Operators and Operator Overloading. Using Special Methods. The Special Methods. Summary. Workshop. Exercises.

Hour 14. The Laboratory of Dr. Frankenstein.
Making Reusable Components. Summary. Workshop. Exercises.

Hour 15. The Laboratory, Part II.
Making Reusable Components, Continued. Documenting Your Components. Testing Your Components. Finding Components Built by Others. Summary. Workshop. Exercises.

Hour 16. Objects in Motion.
A Complete Application. Command-Line Interface. Summary. Workshop. Exercises.

III. INTRODUCING THE PYTHON GUI.


Hour 17. Introducing the Python GUI.
The GUI Programming Model. Events. Callbacks. Summary. Workshop. Exercises.

Hour 18. Tk Widgets I.
Windows and Widgets. The Button Widget. The Canvas Widget. The Checkbutton Widget. The Entry Widget. The Frame Widget. The Label Widget. The Listbox Widget. Tkinter Variables. The Menu and Menubutton Widgets. The MessageBox Widgets. Summary. Workshop. Exercises.

Hour 19. Tk Widgets II.
The Radio Button Widget. The Scale Widget. The Text, Scrollbar, and ScrolledText Widgets. Scrollbars. The Toplevel Widget. Summary. Workshop. Exercises.

Hour 20. Tk Graphics I.
New Menus. Scrolling a Listbox Widget. The Python Imaging Library. The Canvas Widget. Summary. Workshop. Exercises.

Hour 21. Tk Graphics II.
Color. Animation. Summary. Workshop. Exercises.

Hour 22. Tk Graphics III.
More Animation. The Geometry Managers. Summary. Workshop. Exercises.

Hour 23. The Mandelbrot Set.
The Mandelbrot Set. Mathematics. The Mandelbrot Program. Julia Sets. Summary. Workshop. Exercises.

Hour 24. Miscellany.
CGI. Debugging. Right Practice. Right Attitude. Right Understanding. Summary. Workshop. Exercises.

IV. APPENDIXES.


Appendix A. Selected Bibliography.
Appendix B. Editors for Python.
vi and vim. Emacs. Xemacs. Alpha. IDLE.

Appendix C. Reserved Words and Identifiers in Python.
Reserved Words. Reserved Identifiers. Built-in Names.

Appendix D. Special Class Methods in Python.
Appendix E. Other Python Resources.
Index.

 
Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.