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 hereydiff=y1-y2ifydiff>=1:return10000*ydiffelifydiff<=-1:return0else:mdiff=m1-m2ifmdiff>=1:return500*mdiffelifmdiff<=-1:return0else:ddiff=d1-d2ifddiff>=1:return15*ddiffelifddiff<=-1:return0else: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 →
Python