Stack of books

Report a typo

There is incomplete code for a program that requests three books from the user and outputs them in reverse order, thus forming a stack of books. Fill in the missing parts of the code so that the program works correctly.

Fill in the gaps with the relevant elements
book1 = 
 = input("Second book: ")
book3 = 
print("Stack of books:")
print()
print(book2)
print()
input("First book: ")book2book1input("Third book: ")book3

Create a free account to access the full topic