Skip to content
CodeItRaw
Code Reading
/
Shift by One
Path
Play
Daily
Leaderboard
tr
Break the Code
Shift by One
Write a text for which this function gives the wrong answer.
1
def
shift
(text):
2
out =
""
3
for
ch
in
text:
4
out += chr(ord(ch) +
1
)
5
return
out