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.
deftaumBday(b,w,bc,wc,z):# Write your code hereres=(w*wc)+(b*bc)should_convert=z<abs(bc-wc)ifshould_convert:ifbc-wc>0:bc=wc+zreturn(w*wc)+(b*bc)ifwc-bc>0:wc=bc+zreturn(w*wc)+(b*bc)returnres
Taum and B'day
You are viewing a single comment's thread. Return to all comments →