Untitled
unknown
python
a year ago
171 B
6
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 FalseEditor is loading...
Leave a Comment