Ice Cream Parlor

  • + 0 comments

    result = [] for index,i in enumerate(arr): try: pos = arr.index(m-i, index+1, len(arr)) result=[index+1,pos+1] return result except ValueError: pass