This made me crazy today...
def sum67(nums):
flag = True
sum = 0
for i in range(len(nums)):
if nums[i]==6:
flag=False
if flag:
sum+=nums[i]
if nums[i]==7:
flag=True
Return sum
Search from various English teachers...
Corrections · 0
Don’t miss out on the opportunity to learn a language from the comfort of your own home. Browse our selection of experienced language tutors and enroll in your first lesson now!
Start Learning Today
