<div class="content">I am trying to produce A Caesar cipher is a simple substitution cipher , that would code For example, if the key value is 2, the word “Sourpuss” would be encoded as “Uqwtrwuu<br><br>Here is my code: ( but i keep getting a ERROR) It works for me Last week but for some reason it isnt work for me right now. ANY REASON WHY PLEASE HELP <img title="Sad" alt=":(" src="http://www.python-forum.org/pythonforum/images/smilies/icon_sad.gif"> <br>
<br># alphabet.py<br># Simple string processing program to generate an encryp text<br><br><br>def main():<br>print &quot;This program will encode your messages using a Caesar Cipher&quot;<br>print<br>key = input(&quot;Enter the key: &quot;)<br>
message = raw_input(&quot;Enter the message: &quot;)<br>codedMessage = &quot;&quot;<br>for ch in message:<br>codedMessage = codedMessage + chr(ord(ch) + key)<br>print &quot;The coded message is:&quot;, codedMessage<br><br>
<br>main()</div>