Untitled

mail@pastecode.io avatar
unknown
python
24 days ago
145 B
2
Indexable
Never
def has22(nums):
  i = 0
  
  while i < len(nums) - 1:
    if nums[i] == 2 and nums[i + 1] == 2:
      return True
    i += 1
    
  return False
Leave a Comment