def clean_data(players):
    """Sanitize the list of player data."""
    cleaned_players = []

    for player in players:
        cleaned_player = {}

        for key, value in player.items():
            cleaned_value = value

            if key == "height":
                cleaned_value = int(value[0:2])
            elif key == "experience":
                cleaned_value = value == "YES"
            elif key == "guardians":
                cleaned_value = value.split(" and ")

            cleaned_player[key] = cleaned_value

        cleaned_players.append(cleaned_player)

    return cleaned_players