You are viewing a single comment's thread. Return to all comments →
def taumBday(b, w, bc, wc, z): if bc == wc: return (b*bc)+(w*wc) else: if min(bc,wc)+z >= max(bc,wc): return (b*bc)+(w*wc) else: if wc < bc: return ((wc+z)*b)+(w*wc) else: return ((bc+z)*w)+(b*bc)
Seems like cookies are disabled on this browser, please enable them to open this website
Taum and B'day
You are viewing a single comment's thread. Return to all comments →
def taumBday(b, w, bc, wc, z): if bc == wc: return (b*bc)+(w*wc) else: if min(bc,wc)+z >= max(bc,wc): return (b*bc)+(w*wc) else: if wc < bc: return ((wc+z)*b)+(w*wc) else: return ((bc+z)*w)+(b*bc)