Think Python How to Think Like a Computer Scientist

Categories: ,

Recommended

The way of the program

The goal of this book is to teach you to think like a computer scientist. This way of thinking combines some of the best features of mathematics, engineering, and natural science. Like mathematicians, computer scientists use formal languages to denote ideas (specifically computations). Like engineers, they design things, assembling components into systems and evaluating tradeoffs among alternatives. Like scientists, they observe the behavior of complex systems, form hypotheses, and test predictions.

The single most important skill for a computer scientist is problem solving. Problem solving means the ability to formulate problems, think creatively about solutions, and express a solution clearly and accurately. As it turns out, the process of learning to program is an excellent opportunity to practice problem-solving skills. That’s why this chapter is called, “The way of the program.”

On one level, you will be learning to program, a useful skill by itself. On another level, you will use programming as a means to an end. As we go along, that end will become clearer.

The Python programming language

The programming language you will learn is Python. Python is an example of a highlevel language; other high-level languages you might have heard of are C, C++, Perl, and Java.

There are also low-level languages, sometimes referred to as “machine languages” or “assembly languages.” Loosely speaking, computers can only run programs written in low-level languages. So programs written in a high-level language have to be processed before they can run. This extra processing takes some time, which is a small disadvantage of high-level languages

The advantages are enormous. First, it is much easier to program in a high-level language. Programs written in a high-level language take less time to write, they are shorter and easier to read, and they are more likely to be correct. Second, high-level languages are portable, meaning that they can run on different kinds of computers with few or no modifications. Low-level programs can run on only one kind of computer and have to be rewritten to run on another.

Categories:,

Attribution

The source of this flipbook:
Think Python How to Think Like a Computer Scientist. (2016). Open Textbooks for Hong Kong. http://www.opentextbooks.org.hk/tertiary-institutions/33151

“Think Python How to Think Like a Computer Scientist” is one of the free open textbooks for Tertiary level.This selection and arrangement of content as a collection is copyrighted by Allen Downey. It is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license (http://creativecommons.org/licenses/by-nc-sa/4.0/).

VP Flipbook Maker

This flipbook was made with Visual Paradigm’s free flipbook creator. Do you have some awesome content needs to be share? Make stunning flipbooks online. Create flipbooks for free with Visual Paradigm!