<prompt> Kufafanua kazi ambayo inachukua idadi mbili na anarudi wastani wao.  <response>: Here is a simple Python function that takes two numbers, adds them together, and divides by two to calculate their average:pythondef averagenum1, num2: total num1 num2 return total 2 Test the functionprintaverage5, 7 Output: 6.0 