Skip to content

Instantly share code, notes, and snippets.

@alexnas
Created August 23, 2017 21:25
Show Gist options
  • Save alexnas/105ed0fd187a19ff88323fc99e0ecbc3 to your computer and use it in GitHub Desktop.
Save alexnas/105ed0fd187a19ff88323fc99e0ecbc3 to your computer and use it in GitHub Desktop.
134_fix
array = [0,8,6,9,1,3,4,8]
print(array)
check_arr=[1,3,4]
point = 0
result = False
for el in array:
if el == check_arr[point] and point == 0:
point += 1
continue
if el == check_arr[point] and point == 1:
point += 1
continue
if el == check_arr[point] and point == 2:
result = True
break
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment