I really need help with this ceaser cypher!

I really need help with this ceaser cypher!
0

#1

this is my code

word = input("Enter message:") key = int(input("Enter offset:")) list[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,w,x,y,z] caesar = "" for a in word: if a.isalpha() : caesar += alfa[(alfa.index(a)+key)] else: caesar += a

print(caesar)


#2

word = input(“Enter message:”)
key = int(input(“Enter offset:”))
list[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,w,x,y,z]
caesar = “”
for a in word:
if a.isalpha() : caesar += alfa[(alfa.index(a)+key)]
else: caesar += a

print(caesar)