Download Learning with PYTHON: How to Think Like a Computer Scientist by Allen B. Downey, Jeffrey Elkner, Chris Meyers PDF

By Allen B. Downey, Jeffrey Elkner, Chris Meyers

"How to imagine Like a working laptop or computer Scientist: studying with Python" is an creation to laptop technology utilizing the Python programming language. It covers the fundamentals of desktop programming, together with variables and values, features, conditionals and regulate circulation, software improvement and debugging. Later chapters conceal easy algorithms and information constructions. *** released below the phrases of the GNU loose Documentation License. cash raised from the sale of this publication helps the improvement of unfastened software program and documentation.

Show description

Read or Download Learning with PYTHON: How to Think Like a Computer Scientist PDF

Best education books

Public Expenditure Review of Armenia (World Bank Country Study)

This, the 1st full-scale global financial institution Public Expenditure evaluation for Armenia, experiences the most financial traits in Armenia during 1997-2001 and develops innovations with admire to extra monetary adjustment, expenditure prioritization, and funds consolidation. The research specializes in the subsequent middle matters: Sustainability of economic adjustment, economic transparency, expenditure priorities, and momentary expenditure administration given the prevailing economy-wide institutional constraints.

Taking Care of Behaviour: Practical Skills for Learning Support and Teaching Assistants (The Essential Guides)

This sensible consultant covers present directions and revised HLTA guidelines and is designed to aid instructing assistants and different help employees care for behaviour within the school room. the writer specializes in the reader's personal behavior as a kick off point for behaviour administration; this article is going to account for many of the situations during which a educating Assistant can have to regulate behaviour, and also will offer recommendation on operating with the category instructor.

Learning ActionScript 3.0, 2nd Edition

If you are new to ActionScript three. zero, or are looking to improve your ability set, this bestselling booklet is the precise advisor. Designers, builders, and programmers alike will locate studying ActionScript three. zero helpful for navigating ActionScript three. 0's studying curve. you will examine the language by means of getting a transparent examine crucial issues corresponding to common sense, occasion dealing with, exhibiting content material, sessions, and lots more and plenty extra.

Extra info for Learning with PYTHON: How to Think Like a Computer Scientist

Example text

13 Glossary 33 function: A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result. function definition: A statement that creates a new function, specifying its name, parameters, and the statements it executes. flow of execution: The order in which statements are executed during a program run. parameter: A name used inside a function to refer to the value passed as an argument. local variable: A variable defined inside a function.

2 Functions Type conversion Python provides a collection of built-in functions that convert values from one type to another. 0. They may represent the same number, but they belong to different types. The reason is that they are represented differently inside the computer. 3 Type coercion Now that we can convert between types, we have another way to deal with integer division. Returning to the example from the previous chapter, suppose we want to calculate the fraction of an hour that has elapsed.

What happens when you run this program? 8 Functions Flow of execution In order to ensure that a function is defined before its first use, you have to know the order in which statements are executed, which is called the flow of execution. Execution always begins at the first statement of the program. Statements are executed one at a time, in order from top to bottom. Function definitions do not alter the flow of execution of the program, but remember that statements inside the function are not executed until the function is called.

Download PDF sample

Rated 4.75 of 5 – based on 13 votes