Files
pplus-web/mojo/corpus/quest/starters/MQ_326.mojo
T
2026-10-05 03:03:38 +00:00

11 lines
228 B
Mojo

def total_points(batch: List[Int]) -> Int:
var total = 0
for count in batch:
total = count
return total
def main():
var batch: List[Int] = [12, 8, 20, 5]
print("total points:", total_points(batch))