### Instruction: Lois has 40 books. She gives a fourth of her books to her nephew. From her remaining books, she donates a third of her books to the library. Then she purchases 3 new books from the book store. How many books does Lois have now? Let's write a Python program.### Response: # initial number of books
initial_books = 40

# books given to nephew
nephew_books = initial_books / 4

# remaining books after giving to nephew
remaining_books_after_nephew = initial_books - nephew_books

# books donated to library
library_books = remaining_books_after_nephew / 3

# remaining books after donating to library
remaining_books_after_library = remaining_books_after_nephew - library_books

# books purchased from store
store_books = 3

# final number of books
final_books = remaining_books_after_library + store_books

print(int(final_books))