Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +1,8 @@
|
|||
def caesar(s, k, decode = False):
|
||||
if decode: k = 26 - k
|
||||
return "".join([chr((ord(i) - 65 + k) % 26 + 65)
|
||||
for i in s.upper()
|
||||
if ord(i) >= 65 and ord(i) <= 90 ])
|
||||
if decode: k = 26 - k
|
||||
return "".join([chr((ord(i) - 65 + k) % 26 + 65)
|
||||
for i in s.upper()
|
||||
if ord(i) >= 65 and ord(i) <= 90 ])
|
||||
|
||||
msg = "The quick brown fox jumped over the lazy dogs"
|
||||
print msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue