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'
LATEST TUTORIALS
APPROVED BY CLIENTS