Untitled

 avatar
unknown
python
a year ago
200 B
4
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 sum
Editor is loading...
Leave a Comment