Automate the boring stuff with Python : practical programming for total beginners
1 online resource (1 volume) : Basic programming skills for total beginners Print version record Includes index Place of publication taken from publisher's Web site 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
physical copy
More Books
Byte Magazine Volume 07 Number 04 - Human Factors Engineering (THIRD SCAN)
Features
p.32 The Generic Word Processor, A Word-Processing System for All Your Needs
[author Philip Schrodt]
You'll be amazed by this product's versatility.
p.40 Use Infrared Communication for Remote Control
[author ...
ู
ุง ุจุนุฏ ุงูุนูู
ุงููุฉ ูู
ุฌู
ูุนุฉ ู
ุคูููู
ุณูุงุณุฉ
Byte Magazine Volume 00 Number 15 - More Fun than Crayons
Foreground
p.26 BUILD THE BEER BUDGET GRAPHICS INTERFACE
[theme Graphics System] [author Nelson]
p.32 ADD THIS GRAPHICS DISPLAY TO YOUR SYSTEM
[theme Hardware] [author Buschbach]
p.42 AN ENTERPRISING DISPLAY DEVICE
[t...
Cybersecurity fundamentals study guide
vi, 194 pages : 29 cm Includes bibliographical references
Understanding computers : today and tomorrow. Comprehensive
xxi, 567, [48] pages : 28 cm Includes index
PCMania 16
PCManiยญa was a long-lived Spanish computer magazine. Unlike other magazines at the time, they covered a vast number of fields related to PCs such as gaming, technology previews, programming tutorials, etc. They also h...