/**
 * The drawArtist function takes in a map representing an artist's portfolio and the name of the artist.
 * It then searches for the artist's name in the map and returns the list of drawings associated with that artist.
 *
 * @param portfolio A map with artist names as keys and lists of drawings as values.
 * @param artistName The name of the artist to search for in the portfolio map.
 * @return A list of drawings associated with the artist, or a message if the artist is not found in the portfolio.
 */
fun drawArtist(portfolio: Map<String, List<String>>, artistName: String): List<String> {

    // Check if the artistName exists in the portfolio map
    return if (artistName in portfolio.keys) {
        portfolio[artistName] ?: emptyList() // Return the list of drawings for the artistName, or an empty list if null
    } else {
        listOf("Artist not found in the portfolio") // Return a list with the message if artist is not found
    }
}
/**
 * The drawArtist function takes in a map representing an artist's portfolio and the name of the artist.
 * It then searches for the artist's name in the map and returns the list of drawings associated with that artist.
 *
 * @param portfolio A map with artist names as keys and lists of drawings as values.
 * @param artistName The name of the artist to search for in the portfolio map.
 * @return A list of drawings associated with the artist, or a message if the artist is not found in the portfolio.
 */
fun drawArtist(portfolio: Map<String, List<String>>, artistName: String): List<String> {
/**
 * The drawArtist function takes in a map representing an artist's portfolio and the name of the artist.
 * It then searches for the artist's name in the map and returns the list of drawings associated with that artist.
 *
 * @param portfolio A map with artist names as keys and lists of drawings as values.
 * @param artistName The name of the artist to search for in the portfolio map.
 * @return A list of drawings associated with the artist, or a message if the artist is not found in the portfolio.
 */
fun drawArtist(portfolio: Map<String, List<String>>, artistName: String): List<String> {

    // Check if the artistName exists in the portfolio map
    return if (artistName in portfolio.keys) {
        portfolio[artistName] ?: emptyList() // Return the list of drawings for the artistName, or an empty list if null
    } else {
        listOf("Artist not found in the portfolio") // Return a list with the message if artist is not found
    }
}