<prompt> Ngola tšebetso ho arola lintho ka mala oa tsona.Lintho: apole e khubelu, banana e mosehla, buka e ntšo  <response>: Instruction in English: Write a function to classify objects by their color. . Response in English: Here is an example function in Python that can classify objects by their color:pythondef classify_objects_by_colorobjects: colors color_class for obj in objects: obj_name, obj_color obj if obj_color not in colors: colors.appendobj_color color_classobj_color obj_name else: color_classobj_color.appendobj_name return color_classTo use the function, you can input the objects as a list of tuples, where the first item in the tuple is the object name, and the second is the object color.For the example objects provided:pythonobjects apple, red, banana, yellow, book, blackclassify_objects_by_colorobjectsThe output should be:python red: apple, yellow: banana, black: book . Response in Sesotho: Mona ke mohlala oa tšebetso ho Python o ka khethollang lintho ka mala oa tsona: python def classify_objects_by_colorlintho: mebala color_class bakeng sa obj ka lintho: obj_name, obj_color obj haeba obj_color e se mebala: mebala .eketsaobj_color color_classobj_color obj_name else: color_classobj_color.appendobj_name return color_class Ho sebelisa tšebetso, o ka kenya lintho joalo ka lethathamo la li-tuples, moo ntho ea pele e leng teng. tuple ke lebitso la ntho, me ea bobeli ke mala oa ntho. Bakeng sa mohlala oa lintho tse fanoeng: python objects apple, red, banana, yellow, book, black classify_objects_by_colorlintho Sephetho e lokela ho ba: python red: apple, yellow: banana, black: book 