You are viewing a single comment's thread. Return to all comments →
date_returned, month_return, year_return=input().split(" ") date_due, month_due, year_due=input().split(" ") date_returned, month_return, year_return = int(date_returned), int(month_return), int(year_return) date_due, month_due, year_due = int(date_due), int(month_due), int(year_due) if date_returned<= date_due and month_return<=month_due and year_return<=year_due: print(int(0)) if date_returned> date_due and month_return>month_due and year_return<year_due: print(int(0)) if date_returned> date_due and month_return<=month_due and year_return<=year_due: fine=int(15*(date_returned-date_due)) print(fine) if month_return>month_due and year_return==year_due: fine = int((month_return-month_due)*500) print(fine) if year_return>year_due: print(int(10000))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 26: Nested Logic
You are viewing a single comment's thread. Return to all comments →