Created
June 29, 2021 15:39
-
-
Save mivvka/e5fad31b313616f38cb2d0104ec5fb9c to your computer and use it in GitHub Desktop.
Algo Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inData = [5,8,8,4,5,2,6,3,7] | |
dubb = -1 | |
for i in inData: | |
if dubb>0 : break | |
t=0 | |
for j in inData: | |
if i==j : t=t+1 | |
if t>1 : dubb = j; break | |
print(dubb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment