17 lines
338 B
Python
Executable File
17 lines
338 B
Python
Executable File
def main() -> None:
|
||
# Config
|
||
arr = ["а", "b", "с", "d", "с", "е", "f"]
|
||
|
||
# Main code
|
||
some_dict = {}
|
||
for index in range(len(arr)):
|
||
if some_dict.get(arr[index]) is not None:
|
||
print(arr[index])
|
||
break
|
||
|
||
some_dict[arr[index]] = index
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|