A method to solve problems through repetition of a consistent set of steps.
What is an Algorithm?
The final value of x after these operations:
x = 3
y = 9
y = y + x
x = y / x
x = x**2
What is 16?
What is a for loop?
A type of file formatted to be delimited by a series of commas.
What is CSV(Comma Separated Values)?
The name for the result of any series of operations that results in only two possible outcomes; often denoted with True or False.
What is a Boolean Expression?
An algorithm that continually adds to a value or container.
What is an Accumulator Pattern?
The value of y after completion of the loop.
x = 7
y = 0
while y < x:
y += 2
x -= 1
What is 6?
A form of loop that continues or terminates based on a Boolean expression.
What is a while loop?
A mode that when applied when opening a file, allows one to add information to the end of the file.
What is Append('a' in open() calls)?
The term for a defined placeholder for a variable to be passed in when calling a function.
What is a Parameter?
An algorithm that tends a set of points toward the centers of a greater set of points and determines subsets of the greater set of points.
What is k-means Cluster?
The value printed to shell from the following code:
x = [ 'B', 25, [ 'a', 'e', 'i', 'o', 'u']]
print( x[0] + (3 * x[2][3]))
What is Booo?
An indexable container which holds all its elements in order, but cannot change in size or otherwise be modified.
What is a tuple?
A module with a large set of mathematics and data tools that has a sub-module with tools for making plots of data.
What is matplotlib?
The ability to modify an object without needing to reassign or recreate it.
What is Mutable?
An algorithm that allows one to turn a piece of information into another for security purposes.
What is Encryption?
The return of the following code:
x = [(2 - i) for i in range(5)]
print(sum(x))
What is 0?
An unordered container that is syntactically defined with '{}' and stores elements in pairs.
What is a dictionary?
A line of code that allows for the usage of a file's data without the need to explicitly close the file after use.
What is with open()?
A function that specifically is called on an object of some sort, noted by the '.' that follows the object it is being called on.
What is a Method?
The process of having a function call itself until it reaches a base case where it stops and returns.
What is Recursion?
The output of the following code:
import re
txt = "The the ailed snail sailed."
x = re.findall("\sai", txt)
print(x)
What is a [' ai']?
The generic term for the process of filling a container by a loop process.
What is Comprehension?
A method that allows one to add information represented as a string to the current place in an open file.
What is .write()?
A separate file of code that can be added in to the current file in order to use its functions.
What is a Module?