Oct-31-2018, 11:33 PM
alphabet= "abcdefghijklmnopqrstuvwxyz"
cleartext= input()
cleartext=cleartext_lowercase()
def encrypt(cleartext):
codedtext = " "
for character in cleartext:
if character in alphabet:
newcharacter= (alphabet.find(character) + 13) %26
codedtext += alphabet[newcharacter]
elif:
codedtext += character
return codedtext
print(encrypt(cleartext))
This is my python code for a caesar cipher I made after watching the Youtube Channel KidsCanCode Lesson 1.10. I already asked Chris Bradfield for help and thanks to his input, I fixed the errors he told me, but I still have errors. I don't want to bug him by asking him again to look at why this code doesn't work. My goal is to type in sheep and have the secret message as furrc. I recommend that you watch Chris Bradfield's video for clarification.
cleartext= input()
cleartext=cleartext_lowercase()
def encrypt(cleartext):
codedtext = " "
for character in cleartext:
if character in alphabet:
newcharacter= (alphabet.find(character) + 13) %26
codedtext += alphabet[newcharacter]
elif:
codedtext += character
return codedtext
print(encrypt(cleartext))
This is my python code for a caesar cipher I made after watching the Youtube Channel KidsCanCode Lesson 1.10. I already asked Chris Bradfield for help and thanks to his input, I fixed the errors he told me, but I still have errors. I don't want to bug him by asking him again to look at why this code doesn't work. My goal is to type in sheep and have the secret message as furrc. I recommend that you watch Chris Bradfield's video for clarification.