Because you want the maximum rebate, but you don't want to include both. Anything larger than 7 would also be larger than 3, but not vice versa.
Play the example through both ways (with the >= 3 first and second), with d = 10, and see how the logic works out.
I always forget putting the brackets in
'still'? This solution is 7 years old.
why are you still on python 2
This comment is hidden because it contains spoiler information about the solution
Python 2
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Because you want the maximum rebate, but you don't want to include both. Anything larger than 7 would also be larger than 3, but not vice versa.
Play the example through both ways (with the
>= 3
first and second), withd = 10
, and see how the logic works out.why doesn't putting the d >= 3 line first work?
yea i saw this coming but didnt know what else to write lmao
It absorbs water and electrolytes from food that has remained undigested.
Shit, I thought I had a good solution...
what exactly does the colon do?
imagine someone who isn't familiar with coding looking at this and thinking hey! this seems easy enough
why does this show a typeerror-object of type 'int' has no len()
Loading more items...