Automate the boring stuff with Python : practical programming for total beginners

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

Transactions of the American Philosophical Society
Transactions of the American Philosophical Society
Transactions of the American Philosophical Society.The Transactions of the American Philosophical Societyseries has been published since 1771 and is the oldest scholarly publication in the country. This series first r...
Systems programming and operating systems
Systems programming and operating systems
xv, 658 pages : 24 cm Includes bibliographical references and index
Compute! Magazine Issue 019
Compute! Magazine Issue 019
Compute! Issue 19 - December 1981. The Editors Notes The Price Wars - Ask The Readers Line Numbering Suggestion - Ask The Readers PET BASIC AID bug - Ask The Readers COMBAT variable on Atari? - Ask The Readers Apple I...
ترجمه فارسی تفسیر البرهان
ترجمه فارسی تفسیر البرهان
تفسیر البرهان فی تفسیر القرآن تالیف هاشم بحرانی از علمای قرن دوازدهم هجری تفسیر البرهان را می توان جامع ترین تفسیر روایی دانست، مولف در اثر ارزشمند بر خلاف اکثر تفسیرها نظیر المیزان که کاملا مغایر با امر ائمه علیهم ال...
Bilinç Kullanım Kılavuzu
Bilinç Kullanım Kılavuzu
Doğal bir oluşum olarak fiziksel ve biyolojik yasalara tabi olan beynimizde, nasıl olup da bilinç ortaya çıktı? Hangi biyolojik mekanizmalarla ortaya çıktı? Ya da insan bilinci ne işe yarar? "Bilinç İncelemeleri" alan...
Vivienne Wimmler
Vivienne Wimmler
Vivienne Wimmlershort stories for a society that does not retain information"When Consciousness Sleeps: A Coma 3SCENE 2. 13Toxicomania, Subject, Phallic Enjoyment, Autoerotic Enjoyment 19Personal Journey 23...