<prompt> Unda programu ya Python ili kuhesabu wastani wa safu ya nambari.5, 15, 20, 2, 10  <response>: def median_calcnambari: nums.sort katikati leniidadi2 ikiwa leninambari 2 0: wastani idadikatikati nambarikatikati - 12 kwingine: wastani numsmid kurudi wastani safu 5, 15, 20, 2, 10n lenzi safu med wastani_calcsafu printWastani wa safu iliyotolewa ni: strmed 