Comments in Python begin with this symbol.
What is the # sign?
This statement is used to implement a decision structure in Python.
What is the if statement?
This type of loops repeats the code based on the Boolean value of a certain condition.
What is a condition-controlled loop?
A function definition begins with this keyword.
What is def?
The statement allows our Python program to access a data file.
What is the open statement?
This function reads a piece of data from the keyboard and returns the data as a string to the program.
What is the input function?
One or more statements must be ____ to show that it is / they are in the same logic block in a decision structure.
What is "indented"?
This type of loop repeats the code for a specific number of times.
What is a count-controlled loop?
This type of function carries out a task and then exits.
What is a void function?
This method reads a line of text from a text data line, including the end-of-line symbol.
What is the readline method?
This is the operator that raises x to the power of y.
What is the operator ** ?
True or False are known as _____ constants.
What are Boolean constants?
Given this code:
for num in range(4):
the loop will repeat this number of iterations.
What is 4 times?
This type of function carries out a task and returns one or more values.
What is a value-returning function?
If we have a numeric value we wish to write into a text file, this value should first be converted into a text or string type using this function.
What is the str( ) function?
This operator finds the remainder of the long hand division.
What is the % symbol?
What is the symbol == ?
Given this code:
for num in range(4):
the variable num will take on these values each iteration.
What are 0, 1, 2, 3?
We use this statement to include library functions if we want to access / use them in our program.
What is the import statement?
A list in Python is a sequenced dynamic data structure that can contain multiple data items. A list always begins with this subscript.
What is subscript zero or index zero?
When we use the formatting specifier .3f to the number 76.15854, we get this value.
What is 76.159?
We use these symbols <, <=, >, >=, ==, != to create comparisons to construct conditions. These symbols are known collectively as ____ operators.
What are relational operators?
This is the process of inspecting data that has been input into a program in order to ensure that the data is valid before it is used in subsequent steps.
What is input validation?
If we wish to use the function to find the square root, sqrt(x), we should import this library module.
What is the math library module?
What will list contain after the following:
list=[1,2]
list=list*3
list will contain [1, 2, 1, 2, 1, 2]