renamed files and exercise 1.2

This commit is contained in:
Tutur33
2023-11-28 22:39:24 +01:00
parent f39c57c778
commit 24dbf6099f
26 changed files with 19 additions and 6 deletions
@@ -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)