Introduction Flashcards
Program
Instructions executed one at a time
Input
Program gets data - file, user, network, etc.
Process
Program performs computations on input data
Output
Program puts data in a file, screen, network, etc.
Computational Thinking
Creating a sequence of instructions to solve a problem
Algorithm
Sequence of instructions that solves a problem
Python Interpreter
Computer program that executes code written in Python
Interactive Interpreter
Program allows user to execute one line of code at a time
Code
Textual representation of a program
Line
Row of text
> > >
Prompt
Displayed in interactive interpreter to indicate the interpreter is ready to accept code
Statement
Program instruction, usually appearing on its own line
Expressions
Code that return a value when evaluated
Variables
Named references to values stored by interpreter
String Literal
Text enclosed in single quotes
‘hello world’
Whitespace
Any space, tab, or newline
Syntax Error
Violate programming language’s rules
Runtime Error
Syntax is correct but operation is impossible. Will cause the program to crash.
Dividing by 0
Logic Error
Program will run but will not produce the desired result.
AKA bug
IDE
Integrated Development Environment
Code Point
Unicode representing every character as a unique number