Untitled
unknown
python
2 years ago
200 B
6
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