/**
 * This function takes in the name of an athlete, their scores in various competitions, and a handicap value.
 * It calculates the total score by dividing the sum of the scores by the handicap value and assigns it to the athlete.
 */
fun calculateTotalScore(name: String, scores: List<Int> = emptyList(), handicap: Int = 0): String {

    if (scores.isEmpty()) {
        return "No scores available for $name"
    }

    val totalScore = scores.sum() / handicap

    return "The total score for $name is $totalScore"
}
/**
 * This function takes in the name of an athlete, their scores in various competitions, and a handicap value.
 * It calculates the total score by dividing the sum of the scores by the handicap value and assigns it to the athlete.
 */
fun calculateTotalScore(name: String, scores: List<Int> = emptyList(), handicap: Int = 0): String {
/**
 * This function takes in the name of an athlete, their scores in various competitions, and a handicap value.
 * It calculates the total score by dividing the sum of the scores by the handicap value and assigns it to the athlete.
 */
fun calculateTotalScore(name: String, scores: List<Int> = emptyList(), handicap: Int = 0): String {

    if (scores.isEmpty()) {
        return "No scores available for $name"
    }

    val totalScore = scores.sum() / handicap

    return "The total score for $name is $totalScore"
}