Answer to Question #268486 in Python for Jess

Question #268486

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


1
Expert's answer
2021-11-19T17:14:56-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS