<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hello, I wanted to thank all of you who helped me with the backwards 
program.&nbsp; I finally got off my stubborn butt and downloaded 2.4.1 and the 
program finally works.&nbsp; That 2.2 was not compatible with the way I was 
thinking, or maybe I wasn't compatible with it was thinking who knows.&nbsp; 
</DIV>
<DIV>&nbsp;</DIV>
<DIV>i = raw_input("Enter a word.")</DIV>
<DIV>print i[::-1]</DIV>
<DIV>raw_input("\n\nPress the enter key to exit.")</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for allowing me to take some of your precious time.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jim</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=dyoo@hkn.eecs.berkeley.edu 
  href="mailto:dyoo@hkn.eecs.berkeley.edu">Danny Yoo</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=jcahl@psci.net 
  href="mailto:jcahl@psci.net">jcahl@psci.net</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=tutor@python.org 
  href="mailto:tutor@python.org">Tutor</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, April 14, 2005 1:52 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Tutor] Python backwards 
  program (fwd)</DIV>
  <DIV><BR></DIV><BR>&gt; Does the 2.2 python have the ability to do 
  this?<BR><BR>Hi Jim,<BR><BR>Python 2.2 is actually a bit old; you may want to 
  update the version of<BR>Python on your system to Python 2.4.&nbsp; You can 
  find it here:<BR><BR>&nbsp;&nbsp;&nbsp; <A 
  href="http://www.python.org/2.4/">http://www.python.org/2.4/</A><BR><BR>A lot 
  of the approaches you were trying earlier used features that were<BR>added in 
  the 2.3 or 2.4 Python series; they're absent from Python 2.2.<BR><BR><BR>&gt; 
  The following gives me the last letter of the string.<BR>&gt;<BR>&gt; 
  backwords=raw_input("enter number or string:")<BR>&gt; print 
  backwords[-1]<BR><BR>Yes, this is an interesting approach!&nbsp; We can go 
  along this approach a<BR>little more, if you'd like.&nbsp; The code above is 
  getting the last letter, so<BR>we're closer to printing out the word 
  backwards.<BR><BR>How would you print out the second to last letter of the 
  string?<BR><BR></BLOCKQUOTE></BODY></HTML>