MCQs > IT & Programming > Python > Choose the correct answer from the given options. def print_f(x): y=0 for i in range(1, x + 1): if x % i == 0: y=y+i+1 print(y) num = 32 print_f(num)

Python MCQs

Find the output of the following Python code and choose the correct answer from the given options.

def print_f(x):

   y=0

   for i in range(1, x + 1):

    if x % i == 0:

        y=y+i+1

   print(y)

num = 32

print_f(num)


Answer

Correct Answer:

69 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it