Python · Functions
One function can work on any rectangle, reading or name, as long as each call hands it the values to use.