This ordered, grow-as-you-go container is written with square brackets.
What is a list?
The one-word keyword that starts a basic decision in Python
What is if?
Every new function starts with this three-letter keyword.
What is def?
The double-equals sign checks for this.
What is equality?
In the list fruits, this one-line index reveals the very first fruit.
What is fruits[0]?
Run if 5 > 2: print("yes") and this three-letter word appears.
What is "yes"?
Inside a function, this word hands a value back to the caller.
What is return?
One symbol assigns a value; the other compares two values.
What are = and ==?
One of these containers is mutable; the other, created with round brackets, is not.
What are a list and a tuple?
The middle child between if and else in a decision chain.
What is elif?
A tiny routine that prints “Hello, <name>!” whenever given a name.
What is def greet(name): print(f"Hello, {name}!")?
Python returns this integer when you evaluate 9 // 2 using the floor-division operator.
What is 4?
Turning the string "banana" into this collection removes all repeated letters.
What is a set?
This optional clause can follow a for loop and runs only if the loop finishes without hitting a break.
What is the loop else clause?
In one sentence: the item in the function header vs. the actual value you pass in.
What are a parameter and an argument?
According to Python, the expression 15 % 4 + 2 * 3 simplifies to this final value.
What is 9?
A single variable that maps student names to their lists of grades.
What is a dictionary?
While searching through a loop, this single keyword lets Python escape the loop immediately once the target is found.
What is break?
Complete the line def is_even(n): so the function returns True for even numbers.
What is return n % 2 == 0?
This two-character operator returns True when two values are not equal.
What is !=?