ISBN10: 0132269937 ISBN13: 9780132269933
Edition/Copyright: 2ND 07
Publisher: Prentice Hall, Inc.
Cover: Paperback
Year Published: 2007
Weight: 3.6lbs.
Used Condition: Good/Excellent
|
Core Python Programming
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
Used

In Stock

Fast & Free Shipping

Guaranteed Condition
|
New
Sold Out
However, as the largest online textbook source, inventory comes in constantly.
Check back soon!
|
eText
Sold Out
However, as the largest online textbook source, inventory comes in constantly.
Check back soon!
|
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
Welcome toCore Python Programming! We are delighted that you have engaged us to help you learn Python as quickly and as in-depth as possible. Learning the syntax is one goal of this book; however we also believe that if you learn how Python works under the covers, you won't just be able to program in Python, but you will write more effective Python applications, even as a beginner. As you know, just because you learn a language's syntax does not make you competent in it right away. Throughout the book, you will find many examples that you can try right in front of your computer. To hammer the concepts home, you will also find fun and challenging exercises at the end of every chapter. These easy and intermediate exercises are meant to test your learning and push your Python skills. There simply is no substitute for experience. We believe not only should you pick up Python programming skills but also be able to master it in as short a time period as possible. About This Book This book differs from other Python books on the market by presenting a broad range of topics, providing numerous examples, and going in-depth where necessary. This book does not require a specific background, such as prior knowledge of C or object-oriented programming. It is also not a large case study book, which does not facilitate picking up the language quickly. Finally, this book is not a pure reference nor is it meant to be a quick ''dive'' into Python. What we have is an extremely comprehensive introduction to the core features of the language followed by a set of chapters which delve into specific areas of intermediate Python programming. This book is 40% introductory, 40% intermediate to advanced, and 20% reference, targeted toward technical professionals who are already familiar with programming in one other high-level language, including university/college and secondary students. Because Python is used in larger solutions such as Zope, Plone, MailMan, and Django, this book may be used by principals developing, managing, maintaining, or integrating with those systems. About the Reader This book is meant for you if you are a programmer completely new to Python or if you already know some Python but want to know more and improve your Python skillset. Python is used in many fields, including engineering, information technology, science, business, entertainment, and so on. This means that the list of Python users (and readers of this book) includes but is not limited to Software engineers Hardware design/CAD engineers QA/testing and automation framework developers IS/IT/system and network administrators Scientists and mathematicians Technical or project management Multimedia or audio/visual engineers SCM or release engineers Webmasters and content management staff Customer/technical support engineers Database engineers and administrators Research and development engineers Software integration and professional services staff Collegiate and secondary educators Web service engineers Financial software engineers And many others Some of the most famous companies using Python include Google, Yahoo!, NASA, Lucasfilm/Industrial Light and Magic, Red Hat, Zope, Disney, Pixar, and Dreamworks. About the Author I discovered Python over a decade ago at a company called Four11. At the time, the company had one major product, the Four11.com White Page directory service. At the time, Python was being used to design our next product: the Rocketmail Web-based e-mail service that would eventually evolve into what is Yahoo!Mail today. It was fun learning Python and being on the original Yahoo!Mail engineerin
The fast - path guide to Python development for developers new to the ever - growing language!
Preface xxiii Acknowledgments xxxv
Part I: Core Python 2
Chapter 1 Welcome to Python! 4 1.1 What Is Python? 5 1.2 Origins 6 1.3 Features 6 1.4 Downloading and Installing
Python 11 1.5 Running Python 13 1.6 Python Documentation 22 1.7 Comparing Python 23 1.8 Other Implementations 26
1.9 Exercises 27
Chapter 2 Getting Started 30 2.1 Program Output, the print Statement, and "Hello World!" 32 2.2 Program
Input and the raw_input() Built-in Function 33 2.3 Comments 35 2.4 Operators 35 2.5 Variables and Assignment 37
2.6 Numbers 37 2.7 Strings 39 2.8 Lists and Tuples 40 2.9 Dictionaries 40 2.10 Code Blocks Use Indentation 41 2.11
if Statement 41 2.12 while Loop 42 2.13 for Loop and the range() Built-in Function 43 2.14 List Comprehensions
45 2.15 Files and the open() and file() Built-in Functions 46 2.16 Errors and Exceptions 47 2.17 Functions 48 2.18
Classes 50 2.19 Modules 52 2.20 Useful Functions 54 2.21 Exercises 55
Chapter 3 Python Basics 60 3.1 Statements and Syntax 61 3.2 Variable Assignment 64 3.3 Identifiers 67 3.4 Basic
Style Guidelines 69 3.5 Memory Management 75 3.6 First Python Programs 79 3.7 Related Modules/Developer Tools 84
3.8 Exercises 85
Chapter 4 Python Objects 88 4.1 Python Objects 89 4.2 Other Built-in Types 91 4.3 Internal Types 93 4.4 Standard
Type Operators 96 4.5 Standard Type Built-in Functions 101 4.6 Categorizing the Standard Types 111 4.7 Unsupported
Types 116 4.8 Exercises 117
Chapter 5 Numbers 120 5.1 Introduction to Numbers 121 5.2 Integers 122 5.3 Double Precision Floating Point Numbers
125 5.4 Complex Numbers 126 5.5 Operators 127 5.6 Built-in and Factory Functions 136 5.7 Other Numeric Types 145
5.8 Related Modules 148 5.9 Exercises 151
Chapter 6 Sequences: Strings, Lists, and Tuples 156 6.1 Sequences 158 6.2 Strings 168 6.3 Strings and Operators
170 6.4 String-Only Operators 178 6.5 Built-in Functions 184 6.6 String Built-in Methods 188 6.7 Special Features
of Strings 192 6.8 Unicode 197 6.9 Related Modules 206 6.10 Summary of String Highlights 208 6.11 Lists 209 6.12
Operators 211 6.13 Built-in Functions 216 6.14 List Type Built-in Methods 220 6.15 Special Features of Lists 224
6.16 Tuples 232 6.17 Tuple Operators and Built-in Functions 233 6.18 Special Features of Tuples 235 6.19 Related
Modules 239 6.20 *Copying Python Objects and Shallow and Deep Copies 240 6.21 Summary of Sequences 243 6.22 Exercises
246
Chapter 7 Mapping and Set Types 252 7.1 Mapping Type: Dictionaries 253 7.2 Mapping Type Operators 258 7.3 Mapping
Type Built-in and Factory Functions 260 7.4 Mapping Type Built-in Methods 265 7.5 Dictionary Keys 268 7.6 Set Types
273 7.7 Set Type Operators 276 7.8 Built-in Functions 280 7.9 Set Type Built-in Methods 281 7.10 Operator, Function/Method
Summary Table for Set Types 283 7.11 Related Modules 283 7.12 Exercises 285
Chapter 8 Conditionals and Loops 290 8.1 if Statement 291 8.2 else Statement 292 8.3 elif (aka else-if) Statement
294 8.4 Conditional Expressions (aka "the Ternary Operator") 295 8.5 while Statement 296 8.6 for Statement
298 8.7 break Statement 304 8.8 continue Statement 305 8.9 pass Statement 306 8.10 else Statement . . . Take Two
307 8.11 Iterators and the iter() Function 309 8.12 List Comprehensions 313 8.13 Generator Expressions 315 8.14
Related Modules 320
|