Sticky Keys
This commit is contained in:
1 parent
f945afbaad
commit
6b3ff638fe
1 file changed
+7
@@ -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)
|
||||||
Reference in new issue
Block a user