Question #268486

Create a program wherein the library system should be able to collect fines for books returned after the due date.


Expert's answer

from datetime import date
def due_date(Year, Month, Day):
    Date = date(Year, Month, Day)
    if date.today() > Date:
        return 'You are fined'
due_date(2020, 12, 9)
'You are fined'

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS