12 lines
171 B
Python
12 lines
171 B
Python
a = [1,2,3,4,1]
|
|
|
|
def find_thing(l: list[int]) -> bool:
|
|
for n in l:
|
|
if l.count(n) > 1:
|
|
return True
|
|
|
|
return False
|
|
|
|
assert find_thing(a) == True
|
|
|