arr = [3, 4, 5, 7]
ans = "True"
for x in range(len(arr)-1):
if arr[x+1] == arr[x]+1:
ans = "False"
break
print(ans)
print(any(arr[x+1] == arr[x]+1 for x in range(len(arr)-1)))
To embed this project on your website, copy the following code and paste it into your website's HTML: