Add exercises 1, 2 and 3

This commit is contained in:
Tutur33
2023-11-28 22:07:56 +01:00
parent d4fdd986cf
commit 5dbad5630f
290 changed files with 9783 additions and 0 deletions
+16
View File
@@ -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 > 25:
t = t - 26
res += alph[t]
print(res)