MCQs > IT & Programming > Python > Output of the following code? def change_list(list1, list2): list1.append('four') list2 = ['and', 'we', 'can', 'not', 'lie'] outer_list1 = ['one', 'two', 'three'] outer_list2 = ['we', 'like', 'proper', 'English'] change_list(outer_list1, outer_list2) print outer_list1 print outer_list2

Python MCQs

What would be the output of the following code? def change_list(list1, list2): list1.append('four') list2 = ['and', 'we', 'can', 'not', 'lie'] outer_list1 = ['one', 'two', 'three'] outer_list2 = ['we', 'like', 'proper', 'English'] change_list(outer_list1, outer_list2) print outer_list1 print outer_list2

Answer

Correct Answer: ['one', 'two', 'three', 'four'] ['we', 'like', 'proper', 'English']

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