Chapter 2 Key Terms Flashcards
Program Development Cycle
A structured process that outlines the steps to effectively create, maintain, and update software applications.
Pseudocode
Fake code. It is not meant to be read and executed by a computer.
Flowchart
A diagram that shows the steps in the programming process.
Input
The data that is retrieved from users and other devices.
Process
The functioning or running of a computer system.
Output
Information that is given by the computer. Output can come in the form of an image, text, audio etc.
This function is used to show the output from the computer onto the screen.
String
A sequence of data that is used as characters. Characters may be letters, digits, symbols, or spaces.
Comments
Notes of explanation within a program.
#
A hashtag indicates the start of a comment. This symbol will not be executed by the computer.
Variables
Name that represents a value stored in the computer memory.
Assignment
Is used to create a variable and make it reference data.
Rules for Variable Names
Name cannot be a Python key word.
Cannot have any spaces.
First character must be a letter or an underscore.
After the first character letters, digits and underscores can be used.
Names are case sensitive.
Data Type
Categorized value in memory.
str
An abbreviation used to refer to a string data type or a class that represents strings in other languages.
input
Information that is provided to a program for processing. It can come from a user or an external device.
int
An abbreviation used to refer to the integer data type or a class that represents integers in other languages.
float
An abbreviation used to refer to the floating-point data type or a class that represents floating-point numbers.
List and Explain the Math Operators
Tools for performing calculations.
/ Operator that performs floating division.
// Operator that performs integer division.
Order of Precedence
The rules that determine the sequence of how operators work through expressions.
\
Used as an escape character. It shows that the character following it has a special meaning.
Concatenation
The process of combining two or more strings together to create single, longer string.
Escape Character
Character in a sequence that does not represent itself when used in a string.
F-strings
Allow programmers to embed expressions inside string literals that are readable.
Named Constants
The value that will remain the same throughout the execution process.
import
A statement that brings external code, modules, or libraries into a program.
turtle
Also referred to as Turtle Graphics, this concept allows programmers to draw graphics. The turtle is the cursor which moves around the virtual canvas.