Python in easy steps

Python in easy steps

by Mike McGrath
Python in easy steps

Python in easy steps

by Mike McGrath

Paperback(2nd ed.)

$15.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Python in easy steps, 2nd edition instructs you how to program in the powerful Python language, giving complete examples that illustrate each aspect with colourized source code.

Python in easy steps, 2nd edition begins by explaining how to install the free Python interpreter so you can quickly begin to create your own executable programs by copying the book's examples. It demonstrates all the Python language basics before moving on to provide examples of Object Oriented Programming (OOP) and CGI scripting to handle web form data. The book concludes by demonstrating how you can use your acquired knowledge to create and deploy graphical windowed applications.

Python in easy steps, 2nd edition makes no assumption you have previous knowledge of any programming language so it's ideal for the newcomer to computer programming. It has an easy-to-follow style that will appeal to programmers moving from another programming language, and to the student who is studying Python programming at school or college, and to those seeking a career in computing who need a fundamental understanding of computer programming.

The Python 3.x language is under active development so frequent new releases are made available as small improvements are added to the language and Python in easy steps, 2nd edition features the very latest versions of Python at the time of publication. Python development is one of evolution, rather than revolution, so the examples provided in the book can be used in subsequent releases – simply download the latest version of Python then follow the easy steps.

Python is the language used to program the Raspberry Pi - covered by Raspberry Pi in easy steps and Raspberry Pi 3 in easy steps


Product Details

ISBN-13: 9781840788129
Publisher: In Easy Steps Limited
Publication date: 08/28/2018
Series: In Easy Steps
Edition description: 2nd ed.
Pages: 192
Sales rank: 265,334
Product dimensions: 7.20(w) x 8.50(h) x 0.40(d)
Age Range: 8 Years

About the Author

Mike McGrath gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. Mike is an established In Easy Steps author with several guides to his credit including: C++; Javascript, Java, Linux, PHP, SQL and Visual Basic Express.

Table of Contents

1 Getting started 7

Installing Python on Windows 10

Installing Python on Linux 12

Meeting the interpreter 14

Writing your first program 16

Employing variables 18

Obtaining user input 20

Correcting errors 22

Summary 24

2 Performing operations 25

Doing arithmetic 26

Assigning values 28

Comparing values 30

Assessing logic 32

Examining conditions 34

Setting precedence 36

Casting data types 38

Manipulating bits 40

Summary 42

3 Making statements 43

Writing lists 44

Manipulating lists 46

Restricting lists 48

Associating list elements 50

Branching with if 52

Looping while true 54

Looping over items 56

Breaking out of loops 58

Summary 60

4 Defining functions 61

Understanding scope 62

Supplying arguments 64

Returning values 66

Using callbacks 68

Adding placeholders 70

Producing generators 72

Handling exceptions 74

Debugging assertions 76

Summary 78

5 Importing modules 79

Storing functions 80

Owning function names 82

Interrogating the system 84

Performing mathematics 86

Calculating decimals 88

Telling the time 90

Running a timer 92

Matching patterns 94

Summary 96

6 Managing strings 97

Manipulating strings 98

Formatting strings 100

Modifying strings 102

Converting strings 104

Accessing files 106

Reading and writing files 108

Updating file strings 110

Pickling data 112

Summary 114

7 Programming objects 115

Encapsulating data 116

Creating instance objects 118

Addressing class attributes 120

Examining built-in attributes 122

Collecting garbage 124

Inheriting features 126

Overriding base methods 128

Harnessing polymorphism 130

Summary 132

8 Processing requests 133

Sending responses 134

Handling values 136

Submitting forms 138

Providing text areas 140

Checking boxes 142

Choosing radio buttons 144

Selecting options 146

Uploading files 148

Summary 150

9 Building interfaces 151

Launching a window 152

Responding to buttons 154

Displaying messages 156

Gathering entries 158

Listing options 160

Polling radio buttons 162

Checking boxes 164

Adding images 166

Summary 168

10 Developing applications 169

Generating random numbers 170

Planning the program 172

Designing the interface 174

Assigning static properties 176

Initializing dynamic properties 177

Adding runtime functionality 178

Testing the program 180

Installing a freezing tool 182

Freezing the program 184

Summary 186

Index 187

From the B&N Reads Blog

Customer Reviews