/**
 * You are an artist and you want to create a song using the given lyrics.
 * However, the lyrics are using placeholders for the artist's name, song title, and favorite color.
 * You need to iterate over a dictionary to replace the placeholders with the corresponding values.
 *
 * @param lyrics A string containing the lyrics of the song with placeholders.
 * @return The final version of the song with the placeholders replaced by the actual values.
 */
fun createSong(lyrics: String): String {

    val artistInfo = mapOf(
        "name" to "John",
        "song_title" to "Sunset Dreams",
        "favorite_color" to "blue"
    )

    var updatedLyrics = lyrics

    // Iterate over the map to replace placeholders in the lyrics
    for ((placeholder, value) in artistInfo) {
        updatedLyrics = updatedLyrics.replace("{$placeholder}", value)
    }

    return updatedLyrics
}

val songLyrics = ""
/**
 * You are an artist and you want to create a song using the given lyrics.
 * However, the lyrics are using placeholders for the artist's name, song title, and favorite color.
 * You need to iterate over a dictionary to replace the placeholders with the corresponding values.
 *
 * @param lyrics A string containing the lyrics of the song with placeholders.
 * @return The final version of the song with the placeholders replaced by the actual values.
 */
fun createSong(lyrics: String): String {
/**
 * You are an artist and you want to create a song using the given lyrics.
 * However, the lyrics are using placeholders for the artist's name, song title, and favorite color.
 * You need to iterate over a dictionary to replace the placeholders with the corresponding values.
 *
 * @param lyrics A string containing the lyrics of the song with placeholders.
 * @return The final version of the song with the placeholders replaced by the actual values.
 */
fun createSong(lyrics: String): String {

    val artistInfo = mapOf(
        "name" to "John",
        "song_title" to "Sunset Dreams",
        "favorite_color" to "blue"
    )

    var updatedLyrics = lyrics

    // Iterate over the map to replace placeholders in the lyrics
    for ((placeholder, value) in artistInfo) {
        updatedLyrics = updatedLyrics.replace("{$placeholder}", value)
    }

    return updatedLyrics
}

val songLyrics = ""