In a guessing game, the player whose guess is nearest the secret number wins.
Write by_closeness(guesses, target). It returns the guesses sorted from closest to the target to furthest.
by_closeness(guesses, target)
8
12
10
1def by_closeness(guesses, target):2 # your code here3 pass4