The character that is used to assign a value to a variable.
Name 6 data types.
int, float, list, dict, str, tuple
Percentage (%)
In the word "Hello," what is the index for the first 'l' ?
2
The print(), len(), and input() functions are examples of...
Built-in function
The character that finalizes a conditional or iterative statement
Colon ":"
float()
The characters that are used to compare the equality of two values or variables
Equation characters "=="
The built-in function to change a str (string) to UPPER CASE
var.upper()
The built-in function that returns the structure in a variable.
dir()
The statement that can interrupt a repeated statement execution.
"break"
type()
Parenthesis
The built-in function to obtain the number of characters in a str variable
len()
The three essential elements to read a file.
File name and location
Data object
Algorithm to read
The statement required for a function to be considered a fruitful function
"Return"
You are asked to obtain a random element from a list. What would you use?
r_element = random.choice(list)
The code expression to find an element in a list or string.
IN. For example:
if 'word' in text:
Index to reverse a str variable
[::-1]
Random or CSV are examples of what Python built-in structures.
Modules
The essential elements necessary to define a function
def
function name
colon
attributes are optional
The error type that results from dividing a list by a number
Type (logic) error
What will be a boolean expression to check if a number is even?
number % 2 == 0
The built-in function to break a str variable into a list str with a criterion (e.g., paragraphs, lines, sentences)
split()
When can a loop go infinite?
'while' with a value that is/evaluates to true