while loop correct answers causes a statement or set of statements to repeat as long as a
condition is true.
global variable correct answers accessible to all the functions in a program file.
local variable correct answers created inside a function and cannot be accessed by statements that
are outside the function.
birds correct answers def texas():
birds = 5000
print('texas has', birds, 'birds.')
What is the local variable?
variable correct answers a name that represents a value stored in the computer's memory.
a variable correct answers age = 25
what is age?
keyword correct answers reserved words that cannot be used as ordinary
identifiers.
example of keywords correct answers and del from not while
as elif global or with
,assert else if pass yield
break except import print
are examples of what?
start:end:stop correct answers 4:10:2
what does each number represent?
pickling correct answers the process of serializing an object is referred to as
input_file = open('phonebook.dat', 'rb') correct answers how do you open a file in python?
a string correct answers a sequence of characters that is used as data is called
recursive function correct answers a function that calls itself
recursive function because it calls itself correct answers def main():
message()
def message():
message()
# Call the main function.
main()
What type of function does this line of code possess and why?
, a while loop correct answers What is the following code an example of?
while True:
statement
statement
the in keyword correct answers is an example of what keyword?
'll' in hello
True
2 correct answers floor(2.8)
results in?
3 correct answers ceiling(2.8)
floor correct answers largest integer less than the number
ceiling correct answers smallest amount above
logical operators correct answers and, or, and not are what?
canvas correct answers provides methods for drawing simple shapes, such as lines, rectangles,
ovals, polygons, and so on.