ANSWERS #9
Name three kinds of sequences - correct answer list
Tuple
String
A _________________ loop is used to iterate through a sequence - correct answer for
The ____________________ function is used to determine how many pairs in a
dictionary or how many elements in a sequence - correct answer len()
An if statement is built by using if followed by a _________________, a
__________________, and a ___________________ of one or more statements -
correct answer condition
Colon
Block
Name the three things that must occur for a sentry variable to effectively control the
while loop - correct answer initialize
Check
Change
Assignment statements take what's on the ___________ and assign it to the variable on
the ___________ - correct answer right
Left
To print quotes inside a string, use an ___________________ to make python ignore
them. They can also be used to print tabs - correct answer escape sequence
What are the three types of errors? - correct answer syntax
Runtime
Logic
A __________________ can be described simply as a mini-program - correct answer
function
The import statement allows the programmer to import a ___________________ which
contains code that can be used in any python program - correct answer module
Dictionaries consist of pairs of ________________ and _______________ - correct
answer keys
Values
____________________ is used to create visual and logical blocks of code - correct
answer indentation