McGrath, Mike.

Python in Easy Steps, 2nd Edition : Makes Programming Fun! - 2nd ed. - 1 online resource (267 pages) - In Easy Steps Series . - In Easy Steps Series .

Intro -- Title -- Copyright -- Contents -- Preface -- 1 Getting started -- Introducing Python -- Installing Python on Windows -- Installing Python on Linux -- Meeting the interpreter -- Writing your first program -- Employing variables -- Obtaining user input -- Correcting errors -- Summary -- 2 Performing operations -- Doing arithmetic -- Assigning values -- Comparing values -- Assessing logic -- Examining conditions -- Setting precedence -- Casting data types -- Manipulating bits -- Summary -- 3 Making statements -- Writing lists -- Manipulating lists -- Restricting lists -- Associating list elements -- Branching with if -- Looping while true -- Looping over items -- Breaking out of loops -- Summary -- 4 Defining functions -- Understanding scope -- Supplying arguments -- Returning values -- Using callbacks -- Adding placeholders -- Producing generators -- Handling exceptions -- Debugging assertions -- Summary -- 5 Importing modules -- Storing functions -- Owning function names -- Interrogating the system -- Performing mathematics -- Calculating decimals -- Telling the time -- Running a timer -- Matching patterns -- Summary -- 6 Managing strings -- Manipulating strings -- Formatting strings -- Modifying strings -- Converting strings -- Accessing files -- Reading and writing files -- Updating file strings -- Pickling data -- Summary -- 7 Programming objects -- Encapsulating data -- Creating instance objects -- Addressing class attributes -- Examining built-in attributes -- Collecting garbage -- Inheriting features -- Overriding base methods -- Harnessing polymorphism -- Summary -- 8 Processing requests -- Sending responses -- Handling values -- Submitting forms -- Providing text areas -- Checking boxes -- Choosing radio buttons -- Selecting options -- Uploading files -- Summary -- 9 Building interfaces -- Launching a window. Responding to buttons -- Displaying messages -- Gathering entries -- Listing options -- Polling radio buttons -- Checking boxes -- Adding images -- Summary -- 10 Developing applications -- Generating random numbers -- Planning the program -- Designing the interface -- Assigning static properties -- Initializing dynamic properties -- Adding runtime functionality -- Testing the program -- Installing a freezing tool -- Freezing the program -- Summary -- Backcover.

Teaches you to program in the powerful Python language - the language used to program the Raspberry Pi. Create your own executable programs by copying the book's examples. Covers Python 3.7.

9781840788365


Object-oriented programming (Computer science).
Python (Computer program language).
Scripting languages (Computer science).


Electronic books.

QA76.73.P98 M347 2018

005.133