Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
goelp14
GitHub Repository: goelp14/easyctf-iv-problems
Path: blob/master/prog_caesar/grader.py
650 views
1
n = 26 - int(input())
2
3
alp = list('abcdefghijklmnopqrstuvwxyz')
4
5
def shift(s, b):
6
o = ''
7
for i in s:
8
if i in alp:
9
i = alp[(alp.index(i) + b) % 26]
10
o += i
11
return o
12
13
print(shift(input(), n))
14