1.2.1 - 1.2.3 Notes Flashcards
a group of instructive code that exists as an independent unit, which is easy to use with other code as needed
modular code
one type of abstraction, that provides a name for a process, may extract features in order to generalize functionality (allows reuse), allows the program to execute the statements within a procedure before continuing
procedural abstraction
the process of breaking a complex problem or system into parts that are easier to understand, conceive, program, and maintain
problem decomposition
a named group of programming instructions that may have parameters/return values
procedure
a trigger from the user or from a program that causes a specific part of the program to execute
event
connecting an event to a function
event handling
program statements are executed when triggered rather than sequentially
event-driven
a variable that can be used in any part of a program
global variable
similar to a list, declared by parentheses, but cannot be edited/changed within the code
tuple
common method for referencing the position of elements in a list or string using natural numbers
list index
each item in a specific location in one list correlates to the item in the same location within another list
parallel lists
attaching two things side-by-side with strings of text
concatenate
an ordered collection of items or values
list
native type of Python representing a sequence of characters
strings
any value that a method or function gives back ti the statement command from which the function/method is called
return values
used to test the relationship between two variables, expression, or values
relational operators
compare two Boolean expressions using and, or, not
aka Boolean operators
logical operators
helps to detect is a key will/won’t work when pressed by the user
onkeypress
the value that are sent to the function when it is called
argument
the input variables of a procedure, a set of information included to help a process or function operate as intended
they are declared when writing the function
parameters
a fixed value in source code such as 5 or “hello”
literal
a repeating portion of an algorithm, repeats a specified number of times or until a condition is met
iteration
parts of a algorithm are executed based on a condition being true/false
selection
application of each step of an algorithm in the order in which code statements are given
sequencing