MCQs > IT & Programming > Python > Output of the following Python code? def p_ft(x): for i in range(1, x + 1): if x % i == 0: d=6/2+i print(d+9) n = 42 p_ft(n)

Python MCQs

What will be the correct output of the following Python code?

def p_ft(x):

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

if x % i == 0:

  d=6/2+i

  print(d+9)

n = 42

p_ft(n)


Answer

Correct Answer:

54.0

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