You are viewing a single comment's thread. Return to all comments →
python3 d1, m1, y1 =list(map(int, input().split())) d2, m2, y2 =list(map(int, input().split()))
if y1 > y2: print(10000) elif y1 == y2 and m1 > m2: print((m1-m2)*500) elif m1 == m2 and d1 > d2: print((d1-d2)*15) else: print(0)
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 →
python3 d1, m1, y1 =list(map(int, input().split())) d2, m2, y2 =list(map(int, input().split()))
if y1 > y2: print(10000) elif y1 == y2 and m1 > m2: print((m1-m2)*500) elif m1 == m2 and d1 > d2: print((d1-d2)*15) else: print(0)