Question: Question 3. (4 points) Write a Python function with 5 input values bibformat(author, title, city, publisher, year) which returns a string in format: author(year). title.

 Question 3. (4 points) Write a Python function with 5 input
values bibformat(author, title, city, publisher, year) which returns a string in format:

Question 3. (4 points) Write a Python function with 5 input values bibformat(author, title, city, publisher, year) which returns a string in format: author(year). title. city: publisher (see examples in the tests section below). The type contract of the function is: (str,str,str,str, int )>str. Question 4. (4 points) Write a Python function called bibformatPrint() that reads from the keyboard the title of a book, the name of the author, the year of publication, the publisher and the city of the publisher. The type contract of the function is: 0> None. The function must display the information about the book in the format specified in question 3 . You must use the bibformat function from question 3 to obtain the string of characters to print. \# testing Question 3 bibformat " Paul Gries", "An Introduction to Computer Science Using Python", "Boston", "pragmatic Bookshelf", 2017) 'Paul Gries (2017). An Introduction to Computer Science Using Python. Boston: Pragmatic Bookshelf' \# testing Question 4 bibformatprint () Please enter the author: Paul Gries please enter the title: An Introduction to Computer Scienoe, Using Python Please enter the city: Boston Please enter the publisher: Pragmatic Bookshelf please enter the year of publication: 2017 Paul Gries (2017). An Introduction to Computer Science Using Python. Boston: Pragmatic Bookshelf

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!