What do you call an expression that is either true or false?
What is Boolean?
"A 'chunk' of code that you can use over and over again."
What is a function?
A segment of a string or list is called
What is a slice?
Four comparison operators
What is ==, !=, >= or <=?
Three arguments for range (in order):
eg:
for i in range(10, 2, -2):
What is start, stop, and step?
When you convert value to another data type
What is a type conversion?
The value that is sent to the function when it is 'called'
What is an argument?
Breaking a sentence of words into a list.
What is a split?
When a while loop has no way to break out or end.
What is an infinite loop?
The variable listed inside the parentheses in the function definition
What is a parameter?
Code A is different from Code B.
Code A:
if (mj_is_cool == true):
Code B:
if (mj_is_cool == True):
What is an example of case sensitivity?
{Alternative answer}
What is a syntax error?
The conditional operators.
What is and, or, and not?
Text that is in your program but is not run or executed.
What is a comment?
The variable:
options = ["heads", "tails"]
is of this type.
What is a list?
Two of the benefits of writing a simulation program.
What is cost and safety?
Conditional with more than two branches
What is a an if/elif/else?
Building single string from a list of items.
What is a 'join'?
The variable that changes each time the loop executes and controls when the loop finishes
What is the iteration variable or the iterator?
This keyword is used to end the current iteration in a for loop (or a while loop), but still continues to the next iteration
What is continue?
x = False
y = True
not(x) and y
What is true?
What are two or more attributes of functions
What is 'They take arguments, some are built-in via an API, some require importing(like random), they have return values'?
A conditional loop that is used an unknown amount of times.
What is a while loop?
An immutable homogenous list.
What is a tuple?
That which is used to deliver or pass a variable value to another function.
What is an argument?
{alternative answer}
What is a parameter?
Data structure which lets you create a sequence of any data type.
What is a tuple or a list?