mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-03 23:36:19 +02:00
Renamed files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user