Quiz 4
Which sequence of integers will be generated by range(4)?
[0, 1, 2, 3]
Given two variables, "a" and "b", which expression would you use to test whether or not they are equal?
a==b
What could I use to simplify the following line of Python? rabbit_population = rabbit_population * 2
augmented assignment operator
A __________ is an expression evaluated as either true or false by "if" and "while" clauses.
condition
The "while" statement is an example of a count-controlled loop.
false
A(n) __________ loop has no means of terminating.
infinite
and, or, and not are known as __________ operators.
logical
A loop placed inside another loop, is called a __________ loop.
nested
The answer to this question is the result of the following Boolean expression: 'PROGRAMMING' != 'programming'
true
range() can generate sequences that increment from high to low, like [3, 2, 1, 0].
true