/**
 * Write a function that takes a dancer name and the number of repetitions, and prints out the dance moves
 * for the dancer. The dancer starts by doing a basic dance move, and then repeats a series of more complex
 * dance moves a certain number of times. Each complex dance move is made up of multiple basic dance moves.
 *
 * @param dancer The name of the dancer.
 * @param repetitions The number of times to repeat the complex dance moves.
 */
fun danceMoves(dancer: String, repetitions: Int) {

    val basicDanceMove = "basic dance move"
    val complexDanceMoves = listOf("spin", "jump", "twist")

    println("$dancer does the $basicDanceMove.")

    repeat(repetitions) {
        println("$dancer does the complex dance move: ${complexDanceMoves.joinToString()}.")
    }
}
/**
 * Write a function that takes a dancer name and the number of repetitions, and prints out the dance moves
 * for the dancer. The dancer starts by doing a basic dance move, and then repeats a series of more complex
 * dance moves a certain number of times. Each complex dance move is made up of multiple basic dance moves.
 *
 * @param dancer The name of the dancer.
 * @param repetitions The number of times to repeat the complex dance moves.
 */
fun danceMoves(dancer: String, repetitions: Int) {
/**
 * Write a function that takes a dancer name and the number of repetitions, and prints out the dance moves
 * for the dancer. The dancer starts by doing a basic dance move, and then repeats a series of more complex
 * dance moves a certain number of times. Each complex dance move is made up of multiple basic dance moves.
 *
 * @param dancer The name of the dancer.
 * @param repetitions The number of times to repeat the complex dance moves.
 */
fun danceMoves(dancer: String, repetitions: Int) {

    val basicDanceMove = "basic dance move"
    val complexDanceMoves = listOf("spin", "jump", "twist")

    println("$dancer does the $basicDanceMove.")

    repeat(repetitions) {
        println("$dancer does the complex dance move: ${complexDanceMoves.joinToString()}.")
    }
}