Your code
Give peakOf each house's height.
Console
Results
0%
Press Run to check your code
Your code has an error
Give peakOf each house's height.
Why not 100%?
Penalties: none this run
A working-out function can take as many inputs as it needs. peakOf is handed where a house stands and how tall it is, and answers with the point of its roof — so each bird can perch without you measuring anything.
Give peakOf each house's height.
Give peakOf each house's height.
Give peakOf each house's height.