mirea-projects/First term/Algorithms/4/6.py

24 lines
399 B
Python
Raw Permalink Normal View History

2024-09-23 23:22:33 +00:00
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()