You are viewing a single comment's thread. Return to all comments →
def returned(): rd = list(map(int,input().split())) dd = list(map(int, input().split())) if rd[2] < dd[2]: return 0 elif rd[2] > dd[2]: return 10000 elif rd[1] < dd[1]: return 0 elif rd[1] > dd[1]: h = (rd[1] - dd[1]) * 500 return h elif rd[0] > dd[0]: h = (rd[0] - dd[0]) * 15 return h else: return 0 print(returned())
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 →