Limit search to available items
Book Cover
E-book
Author Sweigart, Albert, author

Title Automate the boring stuff with Python : practical programming for total beginners / by Al Sweigart
Published [San Francisco, CA] : No Starch Press, [2015]
©2015

Copies

Description 1 online resource (1 volume) : illustrations
Contents About the Author ; Brief Contents ; Contents in Detail ; Acknowledgments ; Introduction; Whom Is This Book For?; Conventions; What Is Programming?; What Is Python?; Programmers Don't Need to Know Much Math; Programming Is a Creative Activity; About This Book; Downloading and Installing Python; Starting IDLE; The Interactive Shell; How to Find Help; Asking Smart Programming Questions; Summary; Part I: Python Programming Basics; Chapter 1: Python Basics; Entering Expressions into the Interactive Shell; The Integer, Floating-Point, and String Data Types; String Concatenation and Replication
Storing Values in VariablesAssignment Statements; Variable Names; Your First Program; Dissecting Your Program; Comments; The print() Function; The input() Function; Printing the User's Name; The len() Function; The str(), int(), and float() Functions; Summary; Practice Questions; Chapter 2: Flow Control; Boolean Values; Comparison Operators; Boolean Operators; Binary Boolean Operators; The not Operator; Mixing Boolean and Comparison Operators; Elements of Flow Control; Conditions; Blocks of Code; Program Execution; Flow Control Statements; if Statements; else Statements; elif Statements
While Loop Statementsbreak Statements; continue Statements; for Loops and the range() Function; Importing Modules; from import Statements; Ending a Program Early with sys.exit(); Summary; Practice Questions; Chapter 3: Functions; def Statements with Parameters; Return Values and return Statements; The None Value; Keyword Arguments and print(); Local and Global Scope; Local Variables Cannot Be Used in the Global Scope; Local Scopes Cannot Use Variables in Other Local Scopes; Global Variables Can Be Read from a Local Scope; Local and Global Variables with the Same Name; The global Statement
Exception HandlingA Short Program: Guess the Number; Summary; Practice Questions; Practice Projects; The Collatz Sequence; Input Validation; Chapter 4: Lists; The List Data Type; Getting Individual Values in a List with Indexes; Negative Indexes; Getting Sublists with Slices; Getting a List's Length with len(); Changing Values in a List with Indexes; List Concatenation and List Replication; Removing Values from Lists with del Statements; Working with Lists; Using for Loops with Lists; The in and not in Operators; The Multiple Assignment Trick; Augmented Assignment Operators; Methods
Finding a Value in a List with the index() MethodAdding Values to Lists with the append() and insert() Methods; Removing Values from Lists with remove() ; Sorting the Values in a List with the sort() Method; Example Program: Magic 8 Ball with a List; List-like Types: Strings and Tuples; Mutable and Immutable Data Types; The Tuple Data Type; Converting Types with the list() and tuple() Functions; References; Passing References; The copy Module's copy() and deepcopy() Functions; Summary; Practice Questions; Practice Projects; Comma Code; Character Picture Grid
Summary Basic programming skills for total beginners
Notes Includes index
Place of publication taken from publisher's Web site
Print version record
Subject Python (Computer program language)
Computer programming.
computer programming.
COMPUTERS -- Programming Languages -- General.
Computer programming
Python (Computer program language)
Form Electronic book
ISBN 9781593275990
1593275994
9781593276850
1593276850