Refer to the following Python function designed to find the prime factors of an integer nnn:
def prime_factorize(n):
factors = []
temp = n
for d in range(2, n):
while temp % d == 0:
factors.append(d)
temp = temp // d
return factors
Which option correctly describes the loop structure demonstrated in this function?
Definite iteration nested inside indefinite iteration
Nested definite iterations
Indefinite iteration nested inside definite iteration
Nested indefinite iterations
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.