can someone help I’m stuck
I guess you could use strings or lists for the set-up.
Like
alphabet = "abcdefghijklmnopqrstuvwxyz"
message = """xuo jxuhu! jxyi yi qd unqcfbu ev q squiqh syfxuh. muhu oek qrbu je tusetu yj? y xefu ie! iudt cu q cuiiqwu rqsa myjx jxu iqcu evviuj!"""
And then you might make a caesar_encode
function to do the Caesar cipher encoding, with the message you want to encode and the offset amount as parameters.
I used loops, indices, .find
for strings, % len(alphabet)
, and .join
for strings in that function when I did the project.
1 Like