Chad Everett wrote:
> "Paul Watson" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> 
>>Chad Everett wrote:
>>>high = len(message)
>>>low = -len(message)
>>>print
>>>print message[high:low]
>>>print
>>>print raw_input("Please Press Enter to Exit")
>>
>>Are you sure that this is not a class assignment?  You can search the 
>>messages here for the answer.
> 
> 
> No,  I have been out of school way too long.  I am 34 trying to learn a new 
> trade.  I searched the group for the term backwards but I did not get any 
> results. 

The problem is that negative numbers mean "count from the rightmost end
of the string or list."  Also, you are going high to low without any
indication that you mean to go backwards.

 >>> message = raw_input("Enter a Message:")
 >>> print message[: : -1]

-Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to