def est_height(gender, dad_height, mom_height): return (dad_height+mom_height+1)/2 if gender == "boy" else (dad_height+mom_height-1)/2
import statistics- def est_height(gender, dad_height, mom_height):
avg = statistics.mean([dad_height, mom_height])return avg + 0.5 if gender is "boy" else avg - 0.5- return (dad_height+mom_height+1)/2 if gender == "boy" else (dad_height+mom_height-1)/2