Anonymous user
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
|