/**
 * This exercise is about copying a list of music and converting it to a different format
 */
fun copyAndConvertMusic(musicList: List<String>): List<String> {

    // Initialize an empty list to store the converted music
    val convertedMusic = mutableListOf<String>()
    
    // Loop through each element in the musicList
    for (song in musicList) {
        // Split the song name into the name and format
        val (name, format) = song.split('.')
        
        // Convert the format to uppercase
        val formatted = format.toUpperCase()
        
        // Create the converted song name
        val convertedSong = "$name.$formatted"
        
        // Add the converted song to the convertedMusic list
        convertedMusic.add(convertedSong)
    }
    
    // Return the convertedMusic list
    return convertedMusic
}
/**
 * This exercise is about copying a list of music and converting it to a different format
 */
fun copyAndConvertMusic(musicList: List<String>): List<String> {
/**
 * This exercise is about copying a list of music and converting it to a different format
 */
fun copyAndConvertMusic(musicList: List<String>): List<String> {

    // Initialize an empty list to store the converted music
    val convertedMusic = mutableListOf<String>()
    
    // Loop through each element in the musicList
    for (song in musicList) {
        // Split the song name into the name and format
        val (name, format) = song.split('.')
        
        // Convert the format to uppercase
        val formatted = format.toUpperCase()
        
        // Create the converted song name
        val convertedSong = "$name.$formatted"
        
        // Add the converted song to the convertedMusic list
        convertedMusic.add(convertedSong)
    }
    
    // Return the convertedMusic list
    return convertedMusic
}