Jed Rembold
January 28, 2026
lcjjHj
Examining the code to the right, what is the returned value if I
evaluate the expression func2(1,5)?
def func1(x):
for i in range(3):
x *= 2
return x + x
def func2(y, z):
A = func1(y+1) % 8
z, A = A + z, y
return z ** A
What would the below expression evaluate to?
True and not False or False and not (False or True or False) or False
notandor
current_temp and
target_temp
def print_factors_of(num):
"""Prints off all the integer factors of
the provided number, and returns the count of
them.
Algorithm:
Loop over all numbers less than num
Check if factor by seeing if remainder is 0
Print and increment counter if so
"""
possible_factor = 1
count = 0
while possible_factor <= num:
if num % possible_factor == 0: # Factor found!
print(possible_factor)
count += 1
possible_factor += 1
return count
print(print_factors_of(45632636))