<prompt> Ni kiasi gani cha 2 6?Kujenga programu ambayo kutatua swali uliopewa ya hesabu.  <response>: Here is one possible way to create a program that solves the given mathematical question:pythondef solve_math_problemquestion: str - str: Parse the question to find the numbers and required operation numbers intword for word in question.split if word.isdigit operation if sum in question or in question: operation addition elif difference in question or - in question: operation subtraction elif product in question or in question: operation multiplication elif division in question or in question: operation division Perform the required operation result 0 if operation addition: result sumnumbers elif operation subtraction: result numbers0 - numbers1 elif operation multiplication: result numbers0 numbers1 elif operation division: result numbers0 numbers1 return the answer return fThe answer is result.input_question What is the sum of 2 6?answer solve_math_probleminput_questionprintanswer The answer is 8.This program takes the mathematical question as an input, parses it to find the required operation addition in this case and the numbers to be used in the operation. Then, it performs the required operation adding 2 and 6 in this case, and returns the answer. 