<html>
<body>
At 01:15 PM 8/12/2007, Khamid Nurdiev wrote:<br>
<blockquote type=cite class=cite cite="">Hello All,<br>
I am currently learning python with the book "Python
programming: An introduction to CS" 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> import string<br>
<dd> message=raw_input("Enter the message to
decode: ") <br>
<dd> result=''<br>
<dd> for x in string.split(message):<br>
<dd>
result=result+chr(eval(x))<br>
<dd> return result<br><br>
<dd>print dec()<br><br>
</dl>
</dl><br>
it works fine as expected</blockquote><br>
I dunno, if I enter "How are you?" at the prompt, I get
"NameError: name 'How' is not defined".<br><br>
Dick Moores<br><br>
</body>
</html>