MCQs > IT & Programming > Python > Analyse the given Python code and answer the question that follows. def att_d(fun): fun.data = 3 return fun @att_d def xyz (x. y): return x + y‘2 print(xyz(2, 23)) print(xyz.data) What will be the correct output of the above Python code?

Python MCQs

Analyse the given Python code and answer the question that follows.

def att_d(fun):

fun.data = 3

return fun

@att_d

def xyz (x. y):

return x + y‘2

print(xyz(2, 23))

print(xyz.data)

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


Answer

Correct Answer:

48

3  


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