8 lines
215 B
Mojo
8 lines
215 B
Mojo
def split_into_bins(total: Int, per_bin: Int) -> Tuple[Int, Int]:
|
|
return total % per_bin, total // per_bin
|
|
|
|
|
|
def main():
|
|
var result = split_into_bins(17, 5)
|
|
print("bins:", result[0], "left:", result[1])
|