MCQs > IT & Programming > Python > Correct output from the given options. def comF(x, y): if x > y: sm = y else: sm = x for i in range(1, sm+1): if((x % i == 0) and (y % i == 0)): cf = i return cf num1 = 84 num2 = 64 print(comF(num1, num2))

Python MCQs

Analyse the following Python code and choose its correct output from the given options.

def comF(x, y):

if x > y:

    sm = y

else:

    sm = x

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

    if((x % i == 0) and (y % i == 0)):

        cf = i

return cf

num1 = 84

num2 = 64

print(comF(num1, num2))


Answer

Correct Answer:


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