mirea-projects/First term/Algorithms/4/6.py
2024-09-24 02:22:33 +03:00

24 lines
399 B
Python
Executable File

def main() -> None:
# Config
input_string = "minimum"
# Main code
some_dict = {}
for char in input_string:
if some_dict.get(char) is None:
some_dict[char] = 1
continue
some_dict[char] += 1
for char in input_string:
if some_dict[char] == 1:
print(char)
break
if __name__ == "__main__":
main()