/**
 * A photographer has a collection of photos stored in a tuple.
 * You need to write a function that takes the existing tuple of photos and a new photo,
 * and returns a new tuple with the new photo appended at the end.
 *
 * @param photos The existing tuple of photos.
 * @param newPhoto The new photo to be appended.
 * @return A new tuple with the new photo appended at the end.
 *
 * Example:
 * Given photos = ('photo1', 'photo2', 'photo3') and newPhoto = 'photo4',
 * the function should return ('photo1', 'photo2', 'photo3', 'photo4').
 */
fun createTuple(photos: List<String>, newPhoto: String): List<String> {

    // Convert the existing tuple of photos to a mutable list
    val photoList = photos.toMutableList()

    // Append the new photo to the list
    photoList.add(newPhoto)

    return photoList
}
/**
 * A photographer has a collection of photos stored in a tuple.
 * You need to write a function that takes the existing tuple of photos and a new photo,
 * and returns a new tuple with the new photo appended at the end.
 *
 * @param photos The existing tuple of photos.
 * @param newPhoto The new photo to be appended.
 * @return A new tuple with the new photo appended at the end.
 *
 * Example:
 * Given photos = ('photo1', 'photo2', 'photo3') and newPhoto = 'photo4',
 * the function should return ('photo1', 'photo2', 'photo3', 'photo4').
 */
fun createTuple(photos: List<String>, newPhoto: String): List<String> {
/**
 * A photographer has a collection of photos stored in a tuple.
 * You need to write a function that takes the existing tuple of photos and a new photo,
 * and returns a new tuple with the new photo appended at the end.
 *
 * @param photos The existing tuple of photos.
 * @param newPhoto The new photo to be appended.
 * @return A new tuple with the new photo appended at the end.
 *
 * Example:
 * Given photos = ('photo1', 'photo2', 'photo3') and newPhoto = 'photo4',
 * the function should return ('photo1', 'photo2', 'photo3', 'photo4').
 */
fun createTuple(photos: List<String>, newPhoto: String): List<String> {

    // Convert the existing tuple of photos to a mutable list
    val photoList = photos.toMutableList()

    // Append the new photo to the list
    photoList.add(newPhoto)

    return photoList
}