How to change an integer variable into a string.
What is the str() function?
The symbol that signals to python a block of code is starting.
What is a Colon (:)
This is what happens when the condition in a while statement is false.
Or more accurately:
What causes the while loop to stop executing.
The operator symbol utilized for concatenating str() variables in Python
What is the Plus sign (+)
What the "A" stands for in PEMDAS
What is Addition
The three data types we learned
What are integer, String, and boolean?
The two possible values for a boolean statement
What are True and False
A statement that can finish the execution of a loop?
Break
%
What is the modulus operator.
The three types of errors we learned in class.
What are syntax error, runtime error and logic error?
How to create a str() variable in Python
What are quotes or the str() function?
Selection
(The definition, not an example).
What is running one block of code vs another based on a condition?
The example is an if statement.
A loop that runs a specific number of times.
A For loop. It is a loop that has a definite iteration window or length.
Three essential (non-optional) elements for defining a function
What are: Keyword def, function name, colon.
E.g., def function_name():
Parameters are OPTIONAL!
This is how Python knows where there is a blocks of code (e.g., functions, conditional, loops)?
A colon : followed by identation.
It always returns a string variable
What is the input function?
The first statement is a boolean comparison that checks if the two values are equal and the second statement assigns a value to a variable.
What is a == b vs. a = b?
The while loop repeats indefinitely.
What is an Infinite loop which happens when the condition in the while statement is always True.
Causes the function to stop and transforms the function call into the value in the statement.
What is a Return statement?
The function that is not included in PEMDAS that we need to know.
What is Modulus %?
Two Characteristics of variables in python.
What are name and type?
This is when you put an if statement inside another if statement. Or in general any conditional statement inside another conditional statement
What is a Nested if statements, or in general nested conditional statements.
Iteration.
What is repeating a block of code based on a condition?
The function of the 3 parameters in the range statement.
What is:
Where to start
The number before it stops
The increment
Three functions built into Python that you have used.
Note: Karel functions are not built into Python!
What are str(), print(), input(), range(), int()