Strings
if/elif/else
Lists
Basic Arithmetic
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 character denotes the division operator.

(/)

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

The result of 9 // 5

1

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/These symbol(s) denote the power operator.

(**)

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 operator returns the remainder of a division operation.

(%)

400
This function returns the smaller of two values.
What is min?
500

This function returns a string with leading and trailing white spaces removed.

strip()

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

What is the value of 'x' after the following Python code has completed executing?
x = 10
for n in range(1,5):
      x = x*n 

print x

240

500
A function with no return statement, returns this value.
What is None?