Ad
Code
Diff
  • est_height=lambda g,d,m:(d+m+[-1,1][g=="boy"])/2
    • def est_height(g,d,m):
    • return(d+m+1)/2if g=="boy"else(d+m-1)/2
    • est_height=lambda g,d,m:(d+m+[-1,1][g=="boy"])/2