: Tim Hall, J-P Stacey
: Python 3 for Absolute Beginners
: Apress
: 9781430216339
: 1
: CHF 71.00
:
: Allgemeines, Lexika
: English
: 300
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

There are many more people who want to study programming other than aspiring computer scientists with a passing grade in advanced calculus. This guide appeals to your intelligence and ability to solve practical problems, while gently teaching the most recent revision of the programming language Python.

You can learn solid software design skills and accomplish practical programming tasks, like extending applications and automating everyday processes, even if you have no programming experience at all. AuthorsTim Hall andJ-P Stacey use everyday language to decode programming jargon and teach Python 3 to the absolute beginner.



Tim Hall currently provides front-line support for 64 Studio. He has also written newbie tutorials for Linux User and Developer magazine in between more mundane system admin and web authoring jobs. Tim has released albums and performed as a musician and songwriter, both solo and in collaboration with other artists. He has been further honored as the holder of the Bardic chair of Glastonbury between 2005 and 2007. Tim uses Python as his main programming language, primarily as a means for creative ends, because it is easy to read and fun to learn.
Contents at a Glance4
Table of Contents5
About the Author9
About the Technical Reviewer10
Chapter 1: Introducing Python11
Running Python on Various Systems11
Installing on Windows12
Installing on Other Systems12
Choosing the Right Python Version12
Understanding the Jargon13
Learning While Having Fun14
Introducing the Interactive Shell14
Choosing to Code with a Text Editor15
Choosing to Code with an Integrated Development Environment15
Getting Started with Programming15
Creating Your Own Help Files16
Jargon Busting16
Summary17
Chapter 2: Designing Software18
Designing Your Own Software (Why Bother?)18
Asking the Right Questions19
Using Python to Solve Problems19
Identifying the Problem19
What Do You Want the Software to Do?20
Who Will Be Using It?20
What System Will Users Be Running It On?21
Creating Your Wish List21
Talking to Potential Users21
Watching Users Perform the Task at Hand22
Compiling User Stories22
Devising a Solution22
Understanding the Problem22
Knowing What the Software Needs to Do23
Considering Other Needs or Limitations23
Defining Acceptable Results23
Considering Maintenance23
Breaking Down the Solution into Steps24
Organizing the Tasks into Steps25
Using Indentation and Subgroups26
Refining Each Line of Your Pseudocode Until a Solution Is Reached26
Coding the Design27
Turning the Design into Executable Code27
Further Refining the Design28
Using functions28
Testing the Design29
Detecting and correcting coding errors30
Noting Modifications, Extensions, and Enhancements31
Documenting the Solution31
Jargon Busting33
Summary34
Chapter 3: Variables and Data Types35
Choosing Good Identifiers35
Python Keywords35
Following the Naming Rules36
Creating Variables and Assigning Values36
Recognizing Different Types of Variables37
Working with Dynamic Typing37
In the Beginning Was the Void39
Joining Up Text Fragments39
Using Quotes40
Nesting Quotes41
Escaping Sequences42
Using Special Whitespace Characters42
The More Strings Change the More They Stay the Same43
Creating a Text Application43
Working with Numbers45
Using Binary: Computers Can Only Count to One45
Bits and Bytes45
Using Booleans: Truth or Dare45
Using Whole Numbers (Integers)46
Performing Basic Mathematical Operations46
Understanding Operator Precedence47
Dividing Numbers47
Working with Fractions and Floats48
Converting One Type into Another48
Working with Base 8 (Octal) and Base 16 (Hexadecimal)49
Creating a Number Application51
Jargon Busting53
Summary55
Chapter 4: Making Choices56
Comparing Things56
Manipulating Boolean Values59
Combining Conditional Expressions60
Using Assignment Operators60
Understanding Operator Precedence61
Taking Control of the Process62
Using the for Statement76
Dealing with Logical Errors64
Using Conditional Code in the Application68
Now Repeat That72
Looping with the while Statement72
Now Get Out of That74
Nesting Conditional Statements76
Jargon Busting80
Summary81
Chapter 5: Using Lists82
Working with Python Data Structures82
Accessing the items in a sequence82
If You’re Not on the List, You Can’t Come In84
Tuples86
Creating a Tuple86
Changing the Values in a Tuple87
Lists87
Creating a List87
Modifying a List87
Stacks and Queues89
Sorting Lists89
Multidimensional Lists90
Processing Large Amounts of Data Easily90
List Comprehensions91
Sets92
Dictionaries93
Defining Dictionaries93
Deleting Items95
Sorting Dictionaries96
Using Dictionaries96
A Simple Role-Playing Combat Game96
Jargon Busting106
Summary107
Chapter 6: Functions108
Accessing Privileged Information108
Defining Functions108
Sending Out Invitations109
Passing an Un