def rotate_word(s, x): for l in s: n = ord(l) if n < 'n': n += x print(chr(n), end="") else: n -= x print(chr(n), end="") rotate_word("sup dvach", 13)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 11, in <module> File "./prog.py", line 4, in rotate_word TypeError: unorderable types: int() < str()