Sticky Keys

This commit is contained in:
2023-06-26 23:09:43 +02:00
parent f945afbaad
commit 6b3ff638fe

7
stickykeys.py Normal file
View File

@@ -0,0 +1,7 @@
s = input().strip()
for c in range(ord("0"), ord("z") + 1):
sc = chr(c)
dc = f"{chr(c)}{chr(c)}"
while dc in s:
s = s.replace(dc, sc)
print(s)