/**
 * This exercise is about modifying the details of an artist stored in a dictionary.
 *
 * Complete the code below to modify the name and genre of an artist.
 * The artist dictionary contains the following keys:
 * - 'name': the current name of the artist
 * - 'genre': the current genre of the artist
 *
 * Your task is to modify the values associated with these keys.
 *
 * @param artist a dictionary containing the artist's details
 * @param newName the new name to be assigned to the artist
 * @param newGenre the new genre to be assigned to the artist
 * @return the modified artist dictionary
 */
fun modifyArtistDetails(artist: MutableMap<String, String>, newName: String, newGenre: String): MutableMap<String, String> {

    // Modify artist's name using newName
    artist["name"] = newName

    // Modify artist's genre using newGenre
    artist["genre"] = newGenre

    return artist
}
/**
 * This exercise is about modifying the details of an artist stored in a dictionary.
 *
 * Complete the code below to modify the name and genre of an artist.
 * The artist dictionary contains the following keys:
 * - 'name': the current name of the artist
 * - 'genre': the current genre of the artist
 *
 * Your task is to modify the values associated with these keys.
 *
 * @param artist a dictionary containing the artist's details
 * @param newName the new name to be assigned to the artist
 * @param newGenre the new genre to be assigned to the artist
 * @return the modified artist dictionary
 */
fun modifyArtistDetails(artist: MutableMap<String, String>, newName: String, newGenre: String): MutableMap<String, String> {
/**
 * This exercise is about modifying the details of an artist stored in a dictionary.
 *
 * Complete the code below to modify the name and genre of an artist.
 * The artist dictionary contains the following keys:
 * - 'name': the current name of the artist
 * - 'genre': the current genre of the artist
 *
 * Your task is to modify the values associated with these keys.
 *
 * @param artist a dictionary containing the artist's details
 * @param newName the new name to be assigned to the artist
 * @param newGenre the new genre to be assigned to the artist
 * @return the modified artist dictionary
 */
fun modifyArtistDetails(artist: MutableMap<String, String>, newName: String, newGenre: String): MutableMap<String, String> {

    // Modify artist's name using newName
    artist["name"] = newName

    // Modify artist's genre using newGenre
    artist["genre"] = newGenre

    return artist
}