commit 3f9d9434c7b1946ec6ebe2e72dde89b214375990 Author: Класс Date: Sat Apr 4 10:38:02 2026 +0300 first commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..53e8f13 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/oparin_test.iml b/.idea/oparin_test.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/oparin_test.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..6d752a7 --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ + + + +def remove_duplicate_chars(s: str) -> str: + have_char = [] + answer_str='' + for i in s: + if i not in have_char: + have_char.append(i) + answer_str += i + return answer_str + +print (remove_duplicate_chars("abacabad") )