Strings
if/elif/else
Lists
Loops
Functions
100
These characters surround every string.
What are quotation marks?
100
This often used statement checks the truth value of a logical statement before executing lines of code.
What is an 'if' statement?
100
A data type that represents a sequence of values.
What is a List?
100
This function generates a range of numbers you can loop over.
What is range?
100
This keyword is used in Python to define a new function.
What is def?
200
This operator "glues" two strings together.
What is the concatenation (+) operator?
200
This boolean operator checks if the value on the left is greater than the value on the right.
What is >?
200
This list operation reorders a list in ascending order.
What is sort()?
200
These are the two types of loops in Python.
What are for and while loops?
200
This keyword is used in a function to output a value and end the function.
What is return?
300
Identify the letter printed from these lines of code: words = "Python Rules!" print(words[7])
What is 'R'?
300
This boolean operator checks if two values are not equal.
What is !=?
300
Python lists retrieve single values using this.
What is an index?
300
This is a type of loop that never stops iterating.
What is an infinite loop?
300
These characters MUST be put at the end of every function call.
What are parentheses?
400
This would give the string "sal" from "Arsala"
What is "Arsala"[2:5] ?
400
This operator checks if the value on the left is a member of the value on the right.
What is the in operator?
400
A function that returns the length of a list.
What is len?
400
This loop has a condition that is checked before each loop iteration.
What is a while loop?
400
This function returns the smaller of two values.
What is min?
500
This string method replace placeholders in a string with values.
What is format?
500
This keyword is used to add additional branches to an if/else block. (HINT: it is always followed by a condition)
What is elif?
500
This function returns a new list using the supplied parameter.
What does list() do?
500
This keyword is used to exit out of a running loop.
What is break or return?
500
A function with no return statement, returns this value.
What is None?