/**
 * This exercise requires you to concatenate two lists and then create a tuple using the tuple() function.
 *
 * You need to complete the code by concatenating the elements of the two lists in a specific format.
 * Then, you should convert the concatenated string into a tuple using the tuple() function.
 *
 * Example:
 * list1 = ['name', 'level']
 * list2 = ['player', 5]
 *
 * Expected output:
 * ('name: player, level: 5')
 *
 * Note: Do not use any built-in Python methods for concatenation and tuple creation.
 *
 * @param list1 First list containing elements to be concatenated.
 * @param list2 Second list containing elements to be concatenated.
 * @return A tuple containing the concatenated elements in a specific format.
 */
fun concatenateAndCreateTuple(list1: List<String>, list2: List<Any>): Pair<String, String> {

    var concatenatedString = ""
    for (i in list1.indices) {
        concatenatedString += "${list1[i]}: ${list2[i]}, "
    }
    concatenatedString = concatenatedString.substring(0, concatenatedString.length - 2)  // Removing the last comma and space
    return Pair(concatenatedString, "")  // Converting the string into a tuple
}
/**
 * This exercise requires you to concatenate two lists and then create a tuple using the tuple() function.
 *
 * You need to complete the code by concatenating the elements of the two lists in a specific format.
 * Then, you should convert the concatenated string into a tuple using the tuple() function.
 *
 * Example:
 * list1 = ['name', 'level']
 * list2 = ['player', 5]
 *
 * Expected output:
 * ('name: player, level: 5')
 *
 * Note: Do not use any built-in Python methods for concatenation and tuple creation.
 *
 * @param list1 First list containing elements to be concatenated.
 * @param list2 Second list containing elements to be concatenated.
 * @return A tuple containing the concatenated elements in a specific format.
 */
fun concatenateAndCreateTuple(list1: List<String>, list2: List<Any>): Pair<String, String> {
/**
 * This exercise requires you to concatenate two lists and then create a tuple using the tuple() function.
 *
 * You need to complete the code by concatenating the elements of the two lists in a specific format.
 * Then, you should convert the concatenated string into a tuple using the tuple() function.
 *
 * Example:
 * list1 = ['name', 'level']
 * list2 = ['player', 5]
 *
 * Expected output:
 * ('name: player, level: 5')
 *
 * Note: Do not use any built-in Python methods for concatenation and tuple creation.
 *
 * @param list1 First list containing elements to be concatenated.
 * @param list2 Second list containing elements to be concatenated.
 * @return A tuple containing the concatenated elements in a specific format.
 */
fun concatenateAndCreateTuple(list1: List<String>, list2: List<Any>): Pair<String, String> {

    var concatenatedString = ""
    for (i in list1.indices) {
        concatenatedString += "${list1[i]}: ${list2[i]}, "
    }
    concatenatedString = concatenatedString.substring(0, concatenatedString.length - 2)  // Removing the last comma and space
    return Pair(concatenatedString, "")  // Converting the string into a tuple
}