Python 3 for Absolute Beginners

Telechargé par yussra dje
Companion
eBook
Available
this print for content only—size & color not accurate
Books for professionals By professionals®
Cyan
MaGenTa
yelloW
BlaCk
US $32.99
Shelve in
Programming Languages / General
User level:
Beginner
www.apress.com
SOURCE CODE ONLINE
Companion eBook
See last page for details
on $10 eBook version
THE APRESS ROADMAP
Beginning Python Dive Into Python 3 Pro Django
Python 3 for
Absolute Beginners
Beginning Django
E-Commerce
Pro Python
System Administration
)3".
  

Python 3 for Absolute Beginners
Dear Reader,
If you want to learn a programming language—and yet you arent a student of
computer science with a passing grade in advanced calculus—then this is the
book for you. Python 3 for Absolute Beginners appeals to your intelligence and
ability to solve practical problems, while gently teaching programming from
scratch, using the most recent revision of the Python programming language.
This approach ensures you’ll gain the abilities of a programmer without any fuss
or mess.
This approach ensures you'll gain the abilities of a programmer and you'll be
creating Python programs in no time, even if you have no programming experi-
ence at all. With this book you'll learn software design and accomplish practical
programming tasks, such as automating everyday jobs and processing data. We
use everyday language to decode programming jargon and teach Python 3 to the
absolute beginners, but the results will be programs of professional caliber.
You’ll learn to:
• master the Python 3 programming language
• cultivate a problem-solving approach and acquire software design skills
create your own software from simple programs that display a message
to stand-alone applications with windows of their own
• use Python on the web
• document your programs to make them easier to maintain
• decode programmers’ jargon
J-P Stacey
trim = 7.5" x 9.25" spine = 0.6875" 312 page count
The eXperT’s VoiCe® in open sourCe
for Absolute Beginners
Tim Hall and J-P Stacey
All you will ever need
to start programming Python
Python 3
Hall
Stacey
Python 3 for Absolute Beginners
Python 3 for Absolute
Beginners
■ ■ ■
Tim Hall and J-P Stacey
Python 3 for Absolute Beginners
Copyright © 2009 by Tim Hall and J-P Stacey
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-1632-2
ISBN-13 (electronic): 978-1-4302-1633-9
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of
the trademark owner, with no intention of infringement of the trademark.
Lead Editor: Matthew Moodie
Technical Reviewer: Duncan Parkes
Additional material: Dr. J. Burton Browning
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Tony Campbell, Gary
Cornell, Jonathan Gennick, Michelle Lowman, Matthew Moodie, Jeffrey Pepper, Frank
Pohlmann, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Project Managers: Beth Christmas and Debra Kelly
Copy Editor: Heather Lang
Compositor: LaurelTech
Indexer: BIM Indexing and e-Services
Artist: April Milne
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail [email protected], or
visit http://www.springeronline.com.
For information on translations, please e-mail [email protected], or visit http://www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.
eBook versions and licenses are also available for most titles. For more information, reference our
Special Bulk SaleseBook Licensing web page at http://www.apress.com/info/bulksales.
The information in this book is distributed on an as is basis, without warranty. Although every
precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have
any liability to any person or entity with respect to any loss or damage caused or alleged to be caused
directly or indirectly by the information contained in this work.
The source code for this book is available to readers at http://www.apress.com.
iii
Contents at a Glance
Contents ......................................................................................................................v
About the Author ........................................................................................................xi
About the Technical Reviewer...................................................................................xii
Chapter 1: Introducing Python ....................................................................................1
Chapter 2: Designing Software....................................................................................9
Chapter 3: Variables and Data Types.........................................................................27
Chapter 4: Making Choices........................................................................................49
Chapter 5: Using Lists................................................................................................75
Chapter 6: Functions ...............................................................................................101
Chapter 7: Working with Text..................................................................................125
Chapter 8: Executable Files, Organization, and Python on the Web........................161
Chapter 9: Classes...................................................................................................181
Chapter 10: Exceptions............................................................................................221
Chapter 11: Reusing Code with Modules and Packages .........................................241
Chapter 12: Simple Windowed Applications............................................................261
Index........................................................................................................................283
1 / 314 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !