Untitled

Anonymous
python
05/29/2024 9:35 PM
228 B
16
Indexable
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
Editor is loading...
Leave a Comment