Computer ScienceScience & MathematicsEconomics & FinanceBusiness & ManagementPolitics & GovernmentHistoryPhilosophy

Think Python

How to Think Like a Computer Scientist

by Allen Downey

Think Python

Subscribe to new books via dBooks.org telegram channel

Join
DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

If you want to learn how to program, working with Python is an excellent way to start. This hands-on guide takes you through the language a step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design. This second edition and its supporting code have been updated for Python 3.

Through exercises in each chapter, you'll try out programming concepts as you learn them. Think Python is ideal for students at the high school or college level, as well as self-learners, home-schooled students, and professionals who need to learn programming basics. Beginners just getting their feet wet will learn how to start with Python in a browser.

Start with the basics, including language syntax and semantics; Get a clear definition of each programming concept; Learn about values, variables, statements, functions, and data structures in a logical progression; Discover how to work with files and databases; Understand objects, methods, and object-oriented programming; Use debugging techniques to fix syntax, runtime, and semantic errors; Explore interface design, data structures, and GUI-based programs through case studies.

This open book is licensed under a Creative Commons License (CC BY-NC). You can download Think Python ebook for free in PDF format (1.6 MB).

Table of Contents

Preface
 
Chapter 1
The way of the program
Chapter 2
Variables, expressions and statements
Chapter 3
Functions
Chapter 4
Case study: interface design
Chapter 6
Fruitful functions
Chapter 7
Iteration
Chapter 8
Strings
Chapter 9
Case study: word play
Chapter 10
Lists
Chapter 11
Dictionaries
Chapter 12
Tuples
Chapter 13
Case study: data structure selection
Chapter 14
Files
Chapter 15
Classes and objects
Chapter 16
Classes and functions
Chapter 17
Classes and methods
Chapter 18
Inheritance
Chapter 19
The Goodies
Appendix A
Debugging
Appendix B
Analysis of Algorithms

Book Details

Title
Think Python
Subject
Computer Science
Publisher
O'Reilly Media, Green Tea Press
Published
2015
Pages
244
Edition
2
Language
English
ISBN13
9781491939420
ISBN10
1491939427
ISBN13 Digital
9781491939369
ISBN10 Digital
1491939362
PDF Size
1.6 MB
License
CC BY-NC

Related Books

Think OCaml
How to Think Like a Computer Scientist is an introductory programming book based on the OCaml language. It is a modified version of Think Python by Allen Downey. It is intended for newcomers to programming and also those who know some programming but want to learn programming in the function-oriented paradigm, or those who simply want to learn OCam...
Programming for Computations - Python
This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...
Learn Python the right way
Python is a fun and extremely easy-to-use programming language that has steadily gained in popularity over the last few years. Developed over ten years ago by Guido van Rossum, Python's simple syntax and overall feel is largely derived from ABC, a teaching language that was developed in the 1980's. However, Python was also created to s...
Programming for Computations - Python
This book presents computer programming as a key method for solving mathematical problems. There are two versions of the book, one for MATLAB and one for Python. The book was inspired by the Springer book TCSE 6: A Primer on Scientific Programming with Python (by Langtangen), but the style is more accessible and concise, in keeping with the needs o...
Invent Your Own Computer Games with Python
Invent Your Own Computer Games with Python teaches you how to program in the Python language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the examples. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi. This book also has an introduction to making games with 2D graph...
Coffee Break Python Slicing
Puzzle-based learning is an active learning technique. With code puzzles, you will learn faster, smarter, and better. Coffee Break Python Slicing is all about growing your Python expertise - one coffee at a time. The focus lies on the important slicing technique to access consecutive data ranges. Understanding slicing thoroughly is crucial for y...