This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
Generated
+10
@@ -0,0 +1,10 @@
|
||||
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))
|
||||
Reference in new issue
Block a user