Untitled
unknown
python
10 months ago
131 B
2
Indexable
def has22(nums): for i in range(len(nums) - 1): if nums[i] == 2 and nums[i + 1] == 2: return True return False
Editor is loading...
Leave a Comment
def has22(nums): for i in range(len(nums) - 1): if nums[i] == 2 and nums[i + 1] == 2: return True return False