Untitled

 avatar
unknown
python
a year ago
145 B
4
Indexable
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
Editor is loading...
Leave a Comment