Complex number in python
x = 1+2j
Left shift and arithmetic right shift operators
<<
and
>>
What does the “def” statement do?
Hashtable syntax in python
x = {}
Differences between the bitwise and boolean operators in python?
boolean are “and”, “or”, and “not”.
Common use of tuples?
Return multiple values
What do an object’s attributes include?
include both variables and functions
How to declare class in python? Constructor? add attributes?

What is interesting about the keys in python dictionaries?
Can have multiple data types for the keys in the same dictionary
Can you define two variables on one line?
It’s discouraged, but yes: f = 2.5; i = 1
What data structure is this?
evens = {2, 4, 6, 8}
A set, not a dictionary
How do you get the elements that belong to both sets? (2)
Operator for matrix product
@
What does this do?
from library import obj, obj2
From a certain module, import certain objects
What does * and ** do in a function call?

What are the automatic conversion to boolean rules for these values?
What are differences between python and Java? (3)

How do you apply a test to every value of an iterator, pass only those for which the test is True

How do you get the elements in a set that don’t belong to another set? (2)
This is called the difference
What’s true of python variables
they’re just pointers to objects
General syntax of list comprehensions

Check if substring exists in string
sub in s
What do we know about default args in python?
evaluated at the time the function definition is evaluated