Skip to content
Code ReadingShift by One
Break the Code

Shift by One

Write a text for which this function gives the wrong answer.
1def shift(text):
2 out = ""
3 for ch in text:
4 out += chr(ord(ch) + 1)
5 return out