Section 1

Preview this deck

semantic

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (67)

Section 1

(50 cards)

semantic

Front

the meaning of a program

Back

modulus operator

Front

%, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second

Back

dictionary

Front

A collection of key/value pairs that maps from keys to values.

Back

keyword

Front

define the language's syntax rules and structure, and they cannot be used as variable names

Back

conditional statement

Front

A statement that controls the flow of execution depending on some condition. In Python the keywords if, elif, and else are used for conditional statements.

Back

format operator

Front

The % operator takes a format string and a tuple of values and generates a string by inserting the data values into the format string at the appropriate locations.

Back

global variable

Front

Can be seen through a program module, even inside of functions.

Back

increment

Front

Both as a noun and as a verb, increment means to increase by 1.

Back

type conversion

Front

An explicit function call that takes a value of one type and computes a corresponding value of another type.

Back

decrement

Front

To subtract one from a variable.

Back

boolean expression

Front

An expression that is either true or false.

Back

aliases

Front

Multiple variables that contain references to the same object.

Back

string

Front

contains a string of letters

Back

conditional statement

Front

One program structure within another, such as a conditional statement inside a branch of another conditional statement

Back

iteration

Front

Repeated execution of a set of programming statements.

Back

token

Front

basic elements of a language(letters, numbers, symbols)

Back

semantic error

Front

An error in a program that makes it do something other than what the programmer intended.

Back

block

Front

A group of consecutive statements with the same indentation.

Back

high-level language

Front

A programming language like Python that is designed to be easy for humans to read and write.

Back

None

Front

A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument.

Back

runtime error

Front

An error that does not occur until the program has started to execute but that prevents the program from continuing.

Back

definite iteration

Front

A loop where we have an upper bound on the number of times the body will be executed. Definite iteration is usually best coded as a for loop

Back

low-level langauge

Front

A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language

Back

operators

Front

special tokens that represent computations like addition, multiplication and division

Back

fruitful function

Front

A function that returns a value when it is called.

Back

syntax

Front

The structure of a program

Back

parameter

Front

A name used inside a function to refer to the value which was passed to it as an argument.

Back

int

Front

A Python data type that holds positive and negative whole numbers

Back

comment

Front

in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program

Back

assignment statement

Front

gives value to a variable

Back

iteration

Front

To repeat a section of code.

Back

boolean function

Front

A function that returns a Boolean value. The only possible values of the bool type are False and True.

Back

flow of execution

Front

The order in which statements are executed during a program run.

Back

clone

Front

To create a new object that has the same value as an existing object. Copying a reference to an object creates an alias but doesn't clone the object.

Back

file

Front

A named entity, usually stored on a hard drive, floppy disk, or CD-ROM, that contains a stream of characters.

Back

algorithm

Front

A set of specific steps for solving a category of problems

Back

compound data type

Front

A data type that is itself made up of elements that are themselves values.

Back

variable

Front

name that refers to a value

Back

function

Front

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

Back

exception

Front

Raised by the runtime system if something goes wrong while the program is running.

Back

local variable

Front

A variable defined inside a function. A local variable can only be used inside its function. Parameters of a function are also a special kind of local variable.

Back

bug

Front

an error in a program

Back

evaluate

Front

To simplify an expression by performing the operations in order to yield a single value.

Back

print

Front

A function used in a program or script that causes the Python interpreter to display a value on its output device.

Back

trace

Front

To follow the flow of execution of a program by hand, recording the change of state of the variables and any output produced.

Back

syntax error

Front

An error in a program that makes it impossible to parse — and therefore impossible to interpret.

Back

float

Front

A Python data type which stores floating-point numbers. Floating-point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers

Back

statement

Front

instruction that the Python interpreter can execute

Back

immutable type

Front

A compound data type whose elements can NOT be assigned new values.

Back

nested loop

Front

A loop inside the body of another loop.

Back

Section 2

(17 cards)

str

Front

converts to a string

Back

integer division

Front

An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.

Back

slice

Front

A copy of part of a sequence specified by a series of indices.

Back

recursion

Front

The process of calling the currently executing function.

Back

mutable type

Front

A compound data type whose elements can be assigned new values.

Back

operator

Front

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

Back

argument

Front

a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

Back

module

Front

A file containing definitions and statements intended to be imported by other programs.

Back

robot

Front

mechanism or an artificial entity that can be guided by automatic controls.

Back

short circuit evaluation

Front

When a boolean expression is evaluated the evaluation starts at the left hand expression and proceeds to the right, stopping when it is no longer necessary to evaluate any further to determine the final outcome.

Back

sequence

Front

A data type that is made up of elements organized linearly, with each element accessed by an integer index.

Back

nested list

Front

A list that is itself contained within a list.

Back

pixel

Front

Smallest addressable element of a picture.

Back

traverse

Front

To repeat an operation on all members of a set from the start to the end.

Back

lambda

Front

A piece of code which can be executed as if it were a function but without a name. (It is also a keyword used to create such an anonymous function.)

Back

proprioception

Front

on a robot, internal sensing mechanisms. On a human, a sense of the relative positions of different parts of ones own body.

Back

element

Front

One of the values in a list (or other sequence). The bracket operator selects elements of a list.

Back