The keyword used to define functions
What is def?
The first index number of a list
What is 0?
Code to create a NumPy array from Python list [1,2,3]
What is np.array([1,2,3])
The function to create an x, y line graph
What is plt.plot(x,y)?
This term is used for junk email
What is SPAM?
The term for the variables in the function definition
What are parameters?
Immutable sequence type often used for fixed collections of values
What is a tuple?
Function to create an array of 17 ones
What is np.ones(17)?
The most important function in matplotlib
What is plt.show()?
This US State consumes more SPAM than any other
What is Hawaii?
When a function has no return value, it will return this instead
What is None?
Powerful Python keyword used to determine if a value is contained within a sequence
What is "in"?
The function to find the index of the maximum value(s) of an array
What is np.argmax()?
The code to create a NumPy array of 1000 evenly space numbers between 5-500 inclusive
What is np.linspace(5,500,1000)?
This Soviet Premier was credited as saying that SPAM saved the Russians in WWII (initials NK)
Who is Nikita Krushchev?
The way to return multiple values from a Python function
What is a tuple assignment?
Function that returns the number of items in a sequence mylist
What is len(mylist)?
Two NumPy methods for finding the number of elements in an array named myarray
What is: np.size(myarray) and myarray.size
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)?
This company makes SPAM and has a SPAM museum in Austin, MN
What is Hormel Foods?
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?
Slice that returns the first three elements of list somelist
What is somelist[0:3]?
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))
This Matplot function sets up a "canvas" for our plot to go on.
What is plt.figure()?
These people sing "Spam, spam, spam, spam" in the Monty Python Skit
What are Vikings?