mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-03 23:36:19 +02:00
16 lines
277 B
Python
16 lines
277 B
Python
msg = input("Message à coder ? ")
|
|
res = ""
|
|
alph = 'abcdefghijklmnopqrstuvwxyz'
|
|
|
|
for i in msg:
|
|
if i == ' ' or i =="'":
|
|
res += i
|
|
|
|
else:
|
|
p = alph.find(i)
|
|
t = p - 3
|
|
if t < 0:
|
|
t = 26 + t
|
|
res += alph[t]
|
|
|
|
print(res) |