MCQs > IT & Programming > Python > Correct answer from the given options. from string import Template Student = [(‘X',24), ('Y',32), ('2',20)] t = Template('$rn‘) for i in Student: print (t.substitute(n = i[0], m = i[1]‘3-1))

Python MCQs

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

from string import Template

Student = [(‘X',24), ('Y',32), ('2',20)]

t = Template('$rn‘)

for i in Student:

print (t.substitute(n = i[0], m = i[1]‘3-1))


Answer

Correct Answer:

71

95

59  


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

More Python MCQ Questions

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it