Shown left: Community solutions for Grains in Python on Exercism
Shown right: BethanyG's solution for Grains in Python on Exercism
The snippet shown among the search results contains a function
on_square, but the solution that the snippet links to does not.
I’m guessing the shown snippet is that of Iteration 1, which has since been unpublished.