DYSFUNCTIONAL
SEQUENCE SENSE
PIECE OF NUM-PIE
PLOT TWIST
SPAM
200

The keyword used to define functions

What is def?

200

The first index number of a list

What is 0?

200

Code to create a NumPy array from Python list [1,2,3]

What is np.array([1,2,3])

200

The function to create an x, y line graph

What is plt.plot(x,y)?

200

This term is used for junk email

What is SPAM?

400

The term for the variables in the function definition

What are parameters?

400

Immutable sequence type often used for fixed collections of values

What is a tuple?

400

Function to create an array of 17 ones

What is np.ones(17)?

400

The most important function in matplotlib

What is plt.show()?

400

This US State consumes more SPAM than any other

What is Hawaii?

600

When a function has no return value, it will return this instead

What is None?

600

Powerful Python keyword used to determine if a value is contained within a sequence

What is "in"?

600

The function to find the index of the maximum value(s) of an array

What is np.argmax()?

600

The code to create a NumPy array of 1000 evenly space numbers between 5-500 inclusive

What is np.linspace(5,500,1000)?

600

This Soviet Premier was credited as saying that SPAM saved the Russians in WWII (initials NK)


Who is Nikita Krushchev?

800

The way to return multiple values from a Python function

What is a tuple assignment?

800

Function that returns the number of items in a sequence mylist

What is len(mylist)?

800

Two NumPy methods for finding the number of elements in an array named myarray

What is: np.size(myarray) and myarray.size

800

The function to create a NumPy array from 100-200 of values separated by 0.5.  This array is inclusive of the endpoints 

What is np.arange(100, 200.5, 0.5)?

800

This company makes SPAM and has a SPAM museum in Austin, MN

What is Hormel Foods?

1000

The term used to describe how "what happens in functions stays in functions" - when a variable created in a function is no accessible outside the function.

What is scope?

1000

Slice that returns the first three elements of list somelist

What is somelist[0:3]?

1000

The code to change an array named myarr from 10x10 into a 4x25 array

What is myarr.reshape(4,25) or np.reshape(myarr, (4,25))

1000

This Matplot function sets up a "canvas" for our plot to go on.

What is plt.figure()?

1000

These people sing "Spam, spam, spam, spam" in the Monty Python Skit

What are Vikings?