We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
deflibraryFine(d1,m1,y1,d2,m2,y2):# Write your code hereify1-y2>0:return10000elify1<y2:return0else:ifm1-m2==0andd1>d2:return15*(d1-d2)elifm1-m2>0:return500*(m1-m2)else:return0
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Library Fine
You are viewing a single comment's thread. Return to all comments →