import requests


def get_player(id):
    """Return a snooker player's full name based on his ID."""
    player = requests.get('http://api.snooker.org/', params={'p': id})
    player = player.json()[0]  # the data consists of a single dictionary in a list

    return f"{player['FirstName']} {player['LastName']}"