/**
 * This function checks if a book is available in the library inventory.
 *
 * @param title The title of the book.
 * @param libraryInventory A list of dictionaries representing the books in the library inventory. Each dictionary contains the title and availability status of a book.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(title: String, libraryInventory: List<Map<String, Any>>): Boolean {

    for (book in libraryInventory) {
        if (book["title"] == title) {
            // Write your code here
            // Complete the boolean expression below to check if the book is available
            if (book["availability"] == true) {
                return true
            } else {
                return false
            }
        }
    }
    // The book is not in the library inventory
    return false
}
/**
 * This function checks if a book is available in the library inventory.
 *
 * @param title The title of the book.
 * @param libraryInventory A list of dictionaries representing the books in the library inventory. Each dictionary contains the title and availability status of a book.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(title: String, libraryInventory: List<Map<String, Any>>): Boolean {
/**
 * This function checks if a book is available in the library inventory.
 *
 * @param title The title of the book.
 * @param libraryInventory A list of dictionaries representing the books in the library inventory. Each dictionary contains the title and availability status of a book.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(title: String, libraryInventory: List<Map<String, Any>>): Boolean {

    for (book in libraryInventory) {
        if (book["title"] == title) {
            // Write your code here
            // Complete the boolean expression below to check if the book is available
            if (book["availability"] == true) {
                return true
            } else {
                return false
            }
        }
    }
    // The book is not in the library inventory
    return false
}