<html>
<body>
At 01:15 PM 8/12/2007, Khamid Nurdiev wrote:<br>
<blockquote type=cite class=cite cite="">Hello All,<br>
&nbsp;I am currently learning python with the book &quot;Python
programming: An introduction to CS&quot; by John M. Zelle and have come
the section where he speaks of encoding messages. Currently the basic
snippet looks like this:<br><br>

<dl>
<dl>
<dd>def dec():<br>

<dd>&nbsp;&nbsp;&nbsp; import string<br>

<dd>&nbsp;&nbsp;&nbsp; message=raw_input(&quot;Enter the message to
decode: &quot;) <br>

<dd>&nbsp;&nbsp;&nbsp; result=''<br>

<dd>&nbsp;&nbsp;&nbsp; for x in string.split(message):<br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
result=result+chr(eval(x))<br>

<dd>&nbsp;&nbsp;&nbsp; return result<br><br>

<dd>print dec()<br><br>

</dl>
</dl><br>
it works fine as expected</blockquote><br>
I dunno, if I enter &quot;How are you?&quot; at the prompt, I get
&quot;NameError: name 'How' is not defined&quot;.<br><br>
Dick Moores<br><br>
</body>
</html>