Jump to content

Price list behind API: Difference between revisions

→‎{{header|Python}}: Handle corner case of many of same price.
No edit summary
(→‎{{header|Python}}: Handle corner case of many of same price.)
Line 315:
partmin = partmax + delta_price
partmax, partcount = get_5k(partmin, mx, num)
assert partcount > 0, \
f"price_list from {partmin} with too many of the same price"
result.append((partmin, partmax, partcount))
return result
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.