Untitled

mail@pastecode.io avatar
unknown
python
15 days ago
171 B
2
Indexable
Never
def has22(nums):
    for i in range(len(nums)):
      if i + 1 < len(nums):
        if nums[i] == 2 and nums[i + 1] == 2:
          return True
          
    return False
Leave a Comment