This method can be used to place an item at a specific index in a list?
.insert()
This type of variable is created within a function.
Local Variable
This is the default mode in which a file is opened in python.
Read
This is the application that allows your python scripts to run.
interpreter
This is the process of writing information about how an application is running to a file for future reference and troubleshooting.
Logging.
The built-in function that returns the number of elements in a sequence.
len()
This refers to a piece of data that is passed INTO a function when the function is called.
Arguement
This is the exception that is raised when the program attempts the following code:
y = 0
x/y if
ZeroDivisionError
This type of exception is raised when a search item is not in the list being searched.
ValueError
This is the process of initially creating a basic version of an application, then improving it a little bit at a time.
Iterative Programming
This function returns the item that has the lowest value in the sequence.
min()
This refers to a piece of data that receives data passed into a function.
Parameter
This mode specifier will erase the contents of a file if it already exists and create the file if it does not already exist?
'w' / write
This loop structure continues until a specified condition is met.
While Loop
This is the low-level programming language that python (the interpreter) is mostly written in.
C (the interpreter is called CPython)
Bonus: Which other languages might you find in various core libraries?
This description of lists indicates that it is changeable.
mutable
This is the default value returned from a function when no return statement is provided.
None
This statement is used to build an exception handler.
try/except
This data type is similar to a list, but immutable.
tuple
This is the difference between a stack and a queue.
A stack executes the most recent instruction first, a queue operates on FIFO
This is the value of list after the following code executes.
list = [1, 2]
list = list * 3
[1, 2, 1, 2, 1, 2]
This is the result of the following code:
def main():
print("The answer is", magic(5))
def magic(num):
answer = num + 2 * 10
return answer
main()
25
These are the possible parts of a try statement.
try:
except:
else:
finally:
A CPU with a clock speed of 4.3 GHz can run this many cycles per second.
4.3 billion cycles per second.
This fundamental concept in object-oriented programming allows different types of data to be handled by the same function.
Polymorphism.