Each of the following questions is worth 4 points.
arguments
True or False
True
from the corresponding argument in the function call
a function call
True and False
False
a function
a literal
literals, variables, calculations, function calls
the first number in the list
a statement
**
parameters
the difference between each number in the list
one more than the last number in the list
anything that can be turned into a value
def is_divisible_by_three(num):
if (num % 3 == 0):
print("True")
else:
print('False')
for loop that prints the EVEN numbers from 2
to 10 using the range function.
for num in range(2,11,2):
print(num)
while loop that prints the numbers from 1 to 10,
each on a separate line. range function here. while loop. num = 1
while num <= 10:
print(num)
num += 1
if signal == "green":
print("Go")
elif signal == "yellow":
print("Slow")
elif signal == "red":
print("Stop")
else:
print("Error")