rscsmackdown

Untitled

Mar 11th, 2017
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def sum67(nums):
  2.   sum = 0
  3.   skip = False
  4.   for i in nums:
  5.     if i ==6:
  6.       skip = True
  7.       continue
  8.     if i == 7 and skip == True:
  9.       skip == False
  10.       continue
  11.     if skip == False:
  12.       sum +=i
  13.   return sum
Add Comment
Please, Sign In to add comment