Sticky Keys
This commit is contained in:
7
stickykeys.py
Normal file
7
stickykeys.py
Normal 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)
|
||||||
Reference in New Issue
Block a user