/**
 * This function plays a song on a given instrument, with a specified speed.
 */
fun playSong(song: String, instrument: String, speed: Int) {

    when (instrument) {
        "piano" -> {
            println("Playing the song on the piano...")
            if (speed > 120) {
                println("Playing the song at a fast tempo!")
            } else {
                println("Playing the song at a moderate tempo.")
            }
        }
        "guitar" -> {
            println("Playing the song on the guitar...")
            if (speed > 240) {
                println("Playing the song with blazing speed!")
            } else {
                println("Playing the song with a regular speed.")
            }
        }
        "drums" -> {
            println("Playing the song on the drums...")
            if (speed > 180) {
                println("Playing the song with intense drumming!")
            } else {
                println("Playing the song with steady drumming.")
            }
        }
        else -> {
            println("Invalid instrument!")
        }
    }
}
/**
 * This function plays a song on a given instrument, with a specified speed.
 */
fun playSong(song: String, instrument: String, speed: Int) {
/**
 * This function plays a song on a given instrument, with a specified speed.
 */
fun playSong(song: String, instrument: String, speed: Int) {

    when (instrument) {
        "piano" -> {
            println("Playing the song on the piano...")
            if (speed > 120) {
                println("Playing the song at a fast tempo!")
            } else {
                println("Playing the song at a moderate tempo.")
            }
        }
        "guitar" -> {
            println("Playing the song on the guitar...")
            if (speed > 240) {
                println("Playing the song with blazing speed!")
            } else {
                println("Playing the song with a regular speed.")
            }
        }
        "drums" -> {
            println("Playing the song on the drums...")
            if (speed > 180) {
                println("Playing the song with intense drumming!")
            } else {
                println("Playing the song with steady drumming.")
            }
        }
        else -> {
            println("Invalid instrument!")
        }
    }
}