<prompt> Kwa kuzingatia safu ya nambari, andika programu ili kupata thamani ya wastani.10, 20, 30, 40  <response>: Kuhesabu wastani wa safudef find_mediandata: data.sort n lendata ikiwa n 2 0: wastani datan2 datan2-12 kwingine: wastani datan2 kurudi wastanikama __name__ __main__: data 10, 20, 30, 40 wastani find_mediandata printWastani ni:, wastani 