3. (2 points) Write a function bibformat_apa_display() that prompts the user for
ID: 669877 • Letter: 3
Question
3. (2 points) Write a function bibformat_apa_display() that prompts the user for a book title, name of the author, year of publication, publisher and the headquarter city of the publisher. The function should then print the information about the book in the same format as specified in question 2. (Your solution must use a function call to bibformat_apa function from question 2).
answer for q2
def bibformat_apa(author, title, city, publisher, year):
return (str(author) + '(' + str(year) + '). ' + str(title) + '. ' +
str(city) + ': ' + str(publisher) + ".")
Explanation / Answer
def bibformat_apa_display():
author = input("author")
title= input("title")
city = input("city")
publisher = input("publisher")
year = input("year")
print bibformat_apa(author,title,city,publisher,year)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.