Think Python Vocabulary 2
Flashcards to accompany Downey's open source book, Think Python. Covers the vocabulary used in the book. Attribution: Imported from ankiweb
450 flashcards · Programming Languages · by kgashok
Define: Low-Level Language
A programming language that is designed to be easy for a computer to execute; also called “machine languageâ€or “assembly language.â€
A programming language like Python that is designed to be easy for humans to read and write.
High-Level Language
To iterate through the items in a sequence, performing a similar operation on each.
Traverse
Define: Traverse
To iterate through the items in a sequence, performing a similar operation on each.
The process of formulating a problem, finding a solution, and expressing the solution.
Problem Solving
Define: high-level language
A programming language like Python that is designed to be easy for humans to read and write.
A rectangle that encloses a set of items, usually specified by two opposing corners.
Bounding Box
A programming language that is designed to be easy for a computer to execute; also called “machine languageâ€or “assembly language.â€
Low-Level Language
Define: Immutable
The property of a sequence whose items cannot be assigned.
Define: Problem Solving
The process of formulating a problem, finding a solution, and expressing the solution.
A variable used to count something, usually initialized to zero and then incremented.
Counter
The property of a sequence whose items cannot be assigned.
Immutable
A string with no characters and length 0, represented by two quotation marks.
Empty String
A property of a program that can run on more than one kind of computer.
Portability
To execute a program in a high-level language by translating it one line at a time.
interpret
To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.
Compile
A program in a high-level language before being compiled
Source Code
The output of the compiler after it translates the program.
Object Code
Another name for object code that is ready to be executed.
Executable
Characters displayed by the interpreter to indicate that it is ready to take input from the user.
Prompt
A program stored in a file (usually one that will be interpreted).
script
A way of using the Python interpreter by typing commands and expres- sions at the prompt.
interactive mode
A way of using the Python interpreter to read and execute statements in a script.
script mode
A set of instructions that specifies a computation.
program
A general process for solving a category of problems.
algorithm
An error in a program.
bug
The process of finding and removing any of the three kinds of programming errors.
debugging
The structure of a program.
syntax
Define: Veneer
A method or function that provides a different interface to another function without doing much computation.
An error in a program that makes it impossible to parse (and therefore im- possible to interpret).
syntax error
An error that is detected while the program is running.
Exception
The meaning of a program.
semantics
An error in a program that makes it do something other than what the programmer intended.
semantic error
Any one of the languages that people speak that evolved naturally.
natural language
Any one of the languages that people have designed for specific pur- poses, such as representing mathematical ideas or computer programs
Formal Language
One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.
Token
To examine a program and analyze the syntactic structure.
parse
An instruction that causes the Python interpreter to display a value on the screen.
print statement
Define: Instance Attribute
An attribute associated with an instance of a class.
Define: Portability
A property of a program that can run on more than one kind of computer.
Define: Interpret
To execute a program in a high-level language by translating it one line at a time.
Define: Compile
To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.
Define: Source Code
A program in a high-level language before being compiled.
Define: Object Code
The output of the compiler after it translates the program.
Define: Executable
Another name for object code that is ready to be executed.
Define: List
A sequence of values.
Define: Prompt
Characters displayed by the interpreter to indicate that it is ready to take input from the user.
Define: Script
A program stored in a file (usually one that will be interpreted).
Define: Interactive Mode
A way of using the Python interpreter by typing commands and expressions at the prompt.
Define: Script Mode
A way of using the Python interpreter to read and execute statements in a script.
Define: Program
A set of instructions that specifies a computation.
Define: Algorithm
A general process for solving a category of problems.
One of the basic units of data, like a number or string, that a program manipulates.
Value
A category of values. The ____ we have seen so far are integers ( ____ int), floating-point numbers ( ____ float), and strings ( ____ str).
Type
A type that represents whole numbers.
Integer
A type that represents numbers with fractional parts.
Floating-Point
A type that represents sequences of characters.
String
A name that refers to a value.
Variable
A section of code that represents a command or action. So far, the ____ we have seen are assignments and print ____.
Statement
A statement that assigns a value to a variable.
Assignment
A graphical representation of a set of variables and the values they refer to.
State Diagram
A reserved word that is used by the compiler to parse a program; you cannot use ____ like if, def, and while as variable names.
Keyword
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.
Operator
One of the values on which an operator operates.
Operand
The operation that divides two numbers and chops off the fraction part.
Floor Division
A combination of variables, operators, and values that represents a single result value.
Expression
To simplify an expression by performing the operations in order to yield a single value.
Evaluate
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
Rules of Precedence
To join two operands end-to-end.
Concatenate
Information 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.
Comment
Define: Bug
An error in a program.
Define: Debugging
The process of finding and removing any of the three kinds of programming errors.
Define: Syntax
The structure of a program.
Define: Syntax Error
An error in a program that makes it impossible to parse (and therefore impossible to interpret).
Define: Exception
An error that is detected while the program is running.
Define: Semantics
The meaning of a program.
Define: Semantic Error
An error in a program that makes it do something other than what the programmer intended.
Define: Natural Language
Any one of the languages that people speak that evolved naturally.
Define: Formal Language
Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages.
Define: Token
One of the basic elements of the syntactic structure of a program, analogous to a word in natural language.
Define: Parse
To examine a program and analyze the syntactic structure.
Define: Print Statement
An instruction that causes the Python interpreter to display a value on the screen.
Define: Value
One of the basic units of data, like a number or string, that a program manipulates.
Define: Type
A category of values. The types we have seen so far are integers (type int), floating point numbers (type float), and strings (type str).
Define: Floating-Point
A type that represents numbers with fractional parts.
Define: String
A type that represents sequences of characters.
Define: Variable
A name that refers to a value.
Define: Statement
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
Define: Assignment
A statement that assigns a value to a variable.
Define: State Diagram
A graphical representation of a set of variables and the values they refer to.
Define: Keyword
A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.
Define: Operator
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.
A condition that should always be true during the execution of a program.
Invariant
Define: Operand
One of the values on which an operator operates.
Define: Floor Division
The operation that divides two numbers and chops off the fraction part.
Define: Expression
A combination of variables, operators, and values that represents a single result value.
Define: Evaluate
To simplify an expression by performing the operations in order to yield a single value.
Define: Rules of Precedence
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
A member of a set. The TurtleWorld in this chapter is a member of the set of TurtleWorlds.
Instance
A part of a program that can execute repeatedly.
Loop