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.
Taking user's input
Stack of books
Report a typo
Fill in the gaps with the relevant elements
book1 =
= input("Second book: ")
book3 =
print("Stack of books:")
print()
print(book2)
print()Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.