def median_trapezium(base1,base2,height): median = 0.5 * (base1+ base2) return median