Untitled
Anonymous
python
05/29/2024 6:12 PM
268 B
14
Indexable
def sum13(nums):
sum = 0
skip = False
for num in nums:
if skip:
skip = False
continue
if num == 13:
skip = True
continue
sum += num
return sumEditor is loading...
Leave a Comment