/**
 * This exercise requires implementing a function that creates a list of photos, each with an initial quality.
 *
 * @param numPhotos an integer representing the number of photos to include in the list.
 * @param initialQuality an integer representing the initial quality of each photo.
 * @return A list of numPhotos photos, each initialized with the initialQuality.
 */
fun createPhotoList(numPhotos: Int, initialQuality: Int): List<Map<String, Int>> {

    // Create an empty list to store the photos
    val photos = mutableListOf<Map<String, Int>>()

    // Use a loop to create numPhotos photos
    repeat(numPhotos) {
        photos.add(mapOf("quality" to initialQuality))
    }

    return photos
}
/**
 * This exercise requires implementing a function that creates a list of photos, each with an initial quality.
 *
 * @param numPhotos an integer representing the number of photos to include in the list.
 * @param initialQuality an integer representing the initial quality of each photo.
 * @return A list of numPhotos photos, each initialized with the initialQuality.
 */
fun createPhotoList(numPhotos: Int, initialQuality: Int): List<Map<String, Int>> {
/**
 * This exercise requires implementing a function that creates a list of photos, each with an initial quality.
 *
 * @param numPhotos an integer representing the number of photos to include in the list.
 * @param initialQuality an integer representing the initial quality of each photo.
 * @return A list of numPhotos photos, each initialized with the initialQuality.
 */
fun createPhotoList(numPhotos: Int, initialQuality: Int): List<Map<String, Int>> {

    // Create an empty list to store the photos
    val photos = mutableListOf<Map<String, Int>>()

    // Use a loop to create numPhotos photos
    repeat(numPhotos) {
        photos.add(mapOf("quality" to initialQuality))
    }

    return photos
}