/**
 * This function creates a list for an interior designer containing their name, profession, and other information.
 *
 * @param name The name of the interior designer.
 * @param profession The profession of the interior designer.
 * @return A list containing the name, profession, and other information of the interior designer.
 */
fun createInteriorDesignerList(name: String, profession: String): List<Any> {

    // Provide a list template for the interior designer
    val interiorDesignerList = mutableListOf<Any>()

    // Add the name and profession of the designer to the list
    interiorDesignerList.add(name)
    interiorDesignerList.add(profession)

    // Ask for additional information to be added to the list
    print("Enter the residence address: ")
    val residenceAddress = readLine()
    print("Enter the phone number: ")
    val phoneNumber = readLine()
    print("Enter the number of projects completed: ")
    val projectCount = readLine()?.toIntOrNull() ?: 0

    // Add the additional information to the list
    residenceAddress?.let { interiorDesignerList.add(it) }
    phoneNumber?.let { interiorDesignerList.add(it) }
    interiorDesignerList.add(projectCount)

    return interiorDesignerList
}
/**
 * This function creates a list for an interior designer containing their name, profession, and other information.
 *
 * @param name The name of the interior designer.
 * @param profession The profession of the interior designer.
 * @return A list containing the name, profession, and other information of the interior designer.
 */
fun createInteriorDesignerList(name: String, profession: String): List<Any> {
/**
 * This function creates a list for an interior designer containing their name, profession, and other information.
 *
 * @param name The name of the interior designer.
 * @param profession The profession of the interior designer.
 * @return A list containing the name, profession, and other information of the interior designer.
 */
fun createInteriorDesignerList(name: String, profession: String): List<Any> {

    // Provide a list template for the interior designer
    val interiorDesignerList = mutableListOf<Any>()

    // Add the name and profession of the designer to the list
    interiorDesignerList.add(name)
    interiorDesignerList.add(profession)

    // Ask for additional information to be added to the list
    print("Enter the residence address: ")
    val residenceAddress = readLine()
    print("Enter the phone number: ")
    val phoneNumber = readLine()
    print("Enter the number of projects completed: ")
    val projectCount = readLine()?.toIntOrNull() ?: 0

    // Add the additional information to the list
    residenceAddress?.let { interiorDesignerList.add(it) }
    phoneNumber?.let { interiorDesignerList.add(it) }
    interiorDesignerList.add(projectCount)

    return interiorDesignerList
}