Think Python Vocabulary
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
A programming language like Python that is designed to be easy for humans to read and write.
High-Level Language
A programming language that is designed to be easy for a computer to execute; also called machine languageor assembly language.
Low-Level Language
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
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: Problem Solving
The process of formulating a problem, finding a solution, and express- ing the solution.
Define: high-level language
A programming language like Python that is designed to be easy for humans to read and write.
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.â€
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: 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.
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
The process of transforming a sequence of statements into a function definition.
Encapsulation
The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).
Generalization
An argument that includes the name of the parameter as a "keyword."
Keyword Argument
A description of how to use a function, including the name and descriptions of the arguments and return value.
Interface
The process of modifying a working program to improve function interfaces and other qualities of the code.
Refactoring
A process for writing programs.
Development Plan
A string that appears in a function definition to document the function's interface.
Docstring
A requirement that should be satisfied by the caller before a function starts.
Precondition
A requirement that should be satisfied by the function before it ends.
Postcondition
Define: Concatenate
To join two operands end-to-end.
Define: Comment
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.
Define: Function
A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.