Start Here - Python Programming - Made Simple for the Beginner (2010).pdf
(
2801 KB
)
Pobierz
734966315 UNPDF
By
Cartoons
by Jody S. Ginther ©2010
www.toonzcat.com
I
Copyright 2010 © by Jody Scott Ginther
CEO of Alien Cat ® Studios, registered Trade Mark
Dedicated to Family Entertainment and Education
“Start Here: Python Programming”
is licensed under a Creative Commons License.
Details can be found at: http://www.creativecommons.org
Author’s websites:
www.AlienCatStudios.com
www.toonzcat.com
II
This page intentionally left blank just to bother people;
You will always wonder...
III
Table Of Contents
Introduction.................................................................................................1
Who Should Read This Book?..............................................................................1
Who’s The Author?..............................................................................................1
What’s A Programming Language?....................................................................2
What Is Python?..................................................................................................2
How To Use This Book.......................................................................................3
Getting And Installing Python............................................................................3
Chapter 1: The Beginner’s Tour of Python...............................................4
IDLE and The Shell.............................................................................................4
IDLE Colors........................................................................................................6
Blocks of Code....................................................................................................6
Chapter 2: You Are Now A Programmer!.................................................9
Let’s Start Programming.....................................................................................9
Strings................................................................................................................10
Variables...........................................................................................................10
Operators..........................................................................................................12
Logical Operators............................................................................................14
Boolean Data Types.........................................................................................14
Chapter 3: Your First Game!...................................................................16
Saving Your First Program...............................................................................16
Explaining The Code.........................................................................................17
Conditional Statements.....................................................................................18
Loop For “Awhile” Statements........................................................................20
Chapter 4: Words Are Boring, Let’s Get Graphic!.................................24
Introduction To Modules..................................................................................25
Lists..................................................................................................................28
Slices................................................................................................................32
Tuples..............................................................................................................34
Chapter 5: Functions................................................................................36
What’s A Functions?.........................................................................................36
How Do I Create/Define My Own Functions?.................................................37
Scope: Global or Local....................................................................................40
Chapter 6: Python Parts............................................................................43
Modules and Object Oriented Language...........................................................43
Standard Library Modules.................................................................................44
Dictionaries.......................................................................................................44
IV
Contents
Chapter 7: Other Stuff...........................................................................46
More Keywords and Expressions..................................................................46
Debugging and Exception Handling.............................................................47
Now What?...................................................................................................47
Index.......................................................................................................49
Review Dictionary of Terms..........................................................................49
Python’s Many Flavors.................................................................................51
Python General Resources...........................................................................51
Other Libraries and Modules May Be Found At: .......................................52
Copyright 2010 © by Jody Scott Ginther
CEO of Alien Cat ® Studios, a registered Trade Mark
Dedicated to Family Entertainment and Education
www.AlienCatStudios.com
www.toonzcat.com
V
Plik z chomika:
kamil9489
Inne pliki z tego folderu:
Snake Wrangling for Kids - Learning to Program with Python 2, linux-v0.7.2 (2007).pdf
(1253 KB)
Python 3 for Absolute Beginners (2009).pdf
(7789 KB)
Python3PatternsIdioms.pdf
(1019 KB)
Python 2.1 Bible (2001).pdf
(6680 KB)
Python 2.6 Graphics Cookbook (2010).pdf
(6045 KB)
Inne foldery tego chomika:
C++
Java
Zgłoś jeśli
naruszono regulamin