Create a program wherein the library system should be able to collect fines for books returned after the due date.
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'
Comments
Leave a comment