deck 1 Flashcards
deck 1
Iteration
Function that repeats a block of code in a specific order
Record
a collection of data of mixed data types
Boolean operators
And, Or, Not
Modulus - %
The remainder of a number - this can be used to check if numbers are odd or even.
If statement
Allows you to make decisions based on certain conditions - commonly followed by an else statement
def statement
a way of defining something
Real / Float
Converts values into decimal numbers
Selection
the process of making a decision
function
something that takes the promt
procedure
WHAT takes the prompt
subprogram
a block of code given in a unique name in a program
!=
not equal to
String formatting
Width, Alignment, type, precision
Powers
** = Squared - *** = Cubed
//
Integer division - divides to nearest integer - no decimal place