diff --git a/07/a/4 - Next Letter.py b/07/a/4 - Next Letter.py new file mode 100644 index 0000000..54f02dc --- /dev/null +++ b/07/a/4 - Next Letter.py @@ -0,0 +1,7 @@ +char = input() +if ord(char) == ord("Z"): + print("A") +else: + print(chr(ord(char) + 1)) +# without if: +# print(chr((ord(input()) - ord("A") + 1) % 26 + ord("A")))