import os
# This program has read/write access to the WORKSPACE directory
filepath = os.path.join( os.environ['WORKSPACE'], 'yourfilename.txt' )
file = open(filepath, 'w')
Write a program to input ten book titles and authors names then save them to a file named book.txt.
For each book, the user will first input the title, then input the first name, then the last name of the author, all on separate lines. In addition to saving the books in the file, please output, using the print method, the information you've gathered from the user.
You should follow the format uppercase title, tab, capitalized last name, comma, single space, capitalized first name. Here's an example for your output:
Format:
TO KILL A MOCKINGBIRD Lee, Harper
All book titles should be in upper case and the authors name should be capitalized.