Skip to Content
Discovering Computer Science
book

Discovering Computer Science

by Jessen Havill
June 2015
Intermediate to advanced
750 pages
19h 47m
English
CRC Press
Content preview from Discovering Computer Science

CHAPTER 2

Elementary computations

It has often been said that a person does not really understand something until after teaching it to someone else. Actually a person does not really understand something until after teaching it to a computer, i.e., expressing it as an algorithm.

Donald E. KnuthAmerican Scientist (1973)

NUMBERS are some of the simplest and most familiar objects on which we can compute. Numbers are also quite versatile; they can represent quantities, measurements, identifiers, and are a means of ordering items. In this chapter, we will introduce some of the fundamentals of carrying out computations with numbers in the Python programming language, and point out the ways in which numbers in a computer sometimes behave differently ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Science Teacher

Computer Science Teacher

Beverly Clarke
Computer Science

Computer Science

Robert Sedgewick

Publisher Resources

ISBN: 9781482254167