/**
 * This exercise focuses on creating a tuple and indexing tuples.
 * The objective is to create a tuple containing an artist's name, genre, and albums,
 * and then retrieve specific information from the tuple using indexing.
 *
 * @param artistName The name of the artist.
 * @param artistGenre The genre of the artist's music.
 * @param artistAlbums A list of albums released by the artist.
 * @return A tuple containing the artist's name, genre, and albums.
 */
fun createTuple(artistName: String, artistGenre: String, artistAlbums: List<String>): Triple<String, String, List<String>> {

    // Create a tuple with the artist's name, genre, and albums
    val artistTuple = Triple(artistName, artistGenre, artistAlbums)

    // Access and print the artist's name
    println("Artist Name: ${artistTuple.first}")

    // Access and print the artist's genre
    println("Genre: ${artistTuple.second}")

    // Access and print the first album in the list
    println("First Album: ${artistTuple.third.first()}")

    // Access and print the last album in the list
    println("Last Album: ${artistTuple.third.last()}")

    return artistTuple
}
/**
 * This exercise focuses on creating a tuple and indexing tuples.
 * The objective is to create a tuple containing an artist's name, genre, and albums,
 * and then retrieve specific information from the tuple using indexing.
 *
 * @param artistName The name of the artist.
 * @param artistGenre The genre of the artist's music.
 * @param artistAlbums A list of albums released by the artist.
 * @return A tuple containing the artist's name, genre, and albums.
 */
fun createTuple(artistName: String, artistGenre: String, artistAlbums: List<String>): Triple<String, String, List<String>> {
/**
 * This exercise focuses on creating a tuple and indexing tuples.
 * The objective is to create a tuple containing an artist's name, genre, and albums,
 * and then retrieve specific information from the tuple using indexing.
 *
 * @param artistName The name of the artist.
 * @param artistGenre The genre of the artist's music.
 * @param artistAlbums A list of albums released by the artist.
 * @return A tuple containing the artist's name, genre, and albums.
 */
fun createTuple(artistName: String, artistGenre: String, artistAlbums: List<String>): Triple<String, String, List<String>> {

    // Create a tuple with the artist's name, genre, and albums
    val artistTuple = Triple(artistName, artistGenre, artistAlbums)

    // Access and print the artist's name
    println("Artist Name: ${artistTuple.first}")

    // Access and print the artist's genre
    println("Genre: ${artistTuple.second}")

    // Access and print the first album in the list
    println("First Album: ${artistTuple.third.first()}")

    // Access and print the last album in the list
    println("Last Album: ${artistTuple.third.last()}")

    return artistTuple
}