THINK Python Flashcards
(147 cards)
Program
a sequence of instructions that specifies how to perform a computation. The computation might be something mathematical, such as solving a system of equations or finding the roots of a polynomial, but it can also be a symbolic computation, such as search- ing and replacing text in a document or something graphical, like processing an image or playing a video.
Input
Get data from the keyboard, a file, the network, or some other device.
Output
Display data on the screen, save it in a file, send it over the network, etc.
Math
Perform basic mathematical operations like addition and multiplication.
Conditional Execution
Check for certain conditions and run the appropriate code.
Repetition
Perform some action repeatedly, usually with some variation.
High-Level Language
A programming language like Python that is designed to be easy for humans to read and write.
Low-Level Language
A programming language that is designed to be easy for a computer to run; also called “machine language” or “assembly language”.
Portability
A property of a program that can run on more than one kind of computer.
Interpreter
A program that reads another program and executes it
Prompt
Characters displayed by the interpreter to indicate that it is ready to take input from the user.
Print Statement
An instruction that causes the Python interpreter to display a value on
the screen.
Operator
A special symbol that represents a simple computation like addition, multipli- cation, or string concatenation.
Value
One of the basic units of data, like a number or string, that a program manipulates.
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).
Integer
A type that represents whole numbers.
Floating-Point
A type that represents numbers with fractional parts.
String
A type that represents sequences of characters.
Formal Language
Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all program- ming languages are formal languages.
Token
One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.
Syntax
The rules that govern the structure of a program.
Parse
To examine a program and analyze the syntactic structure.
Bug
An error in a program.
Debugging
The process of finding and correcting bugs.