Im confused about this error in python

0 votes

When i type this

def books_available(books):
    """Show a list of books to buy."""
    for book in books:
    books_in_stock = "the following title is available to buy" + books.title() + "."
    available = ['elon musk', 'The everything store', 'The growth hack']
    books_available(available)
    print(books_available)
    it gives me this

  File "<ipython-input-6-d36a60b7cf5a>", line 4
    books_in_stock = "the following title is available to buy" + books.title() + "."
    ^
IndentationError: expected an indented block
can you help
Jun 17, 2021 in Python by robert

edited Mar 4, 2025 279 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP