This commit is contained in:
2026-04-18 14:42:00 +05:00
commit ef77f101fa
96 changed files with 3134 additions and 0 deletions

12
labPython/lab5/Slov9.py Executable file
View File

@@ -0,0 +1,12 @@
string = input()
count = {}
result = ""
for char in string:
if char not in count:
count[char] = 0
else:
count[char] += 1
result += f"{char}_{count[char]}"
print(result)