Re: [Tutor] Python backwards program (fwd)

2005-04-15 Thread Danny Yoo
[Jim, when you reply, please send to [EMAIL PROTECTED] Don't just send your reply only to me. Use your email client's Reply-To-All feature.] [Jim] > > The following gives me the last letter of the string. > > > > backwords=raw_input("enter number or string:") > > print backwords[-1]

Re: [Tutor] Python backwards program (fwd)

2005-04-14 Thread Jim and Laura Ahl
April 14, 2005 1:52 PM Subject: Re: [Tutor] Python backwards program (fwd) > Does the 2.2 python have the ability to do this?Hi Jim,Python 2.2 is actually a bit old; you may want to update the version ofPython on your system to Python 2.4.  You can find it here:    http://www.py

Re: [Tutor] Python backwards program (fwd)

2005-04-14 Thread Danny Yoo
> Does the 2.2 python have the ability to do this? Hi Jim, Python 2.2 is actually a bit old; you may want to update the version of Python on your system to Python 2.4. You can find it here: http://www.python.org/2.4/ A lot of the approaches you were trying earlier used features that were

Re: [Tutor] Python backwards program (fwd)

2005-04-14 Thread Brian van den Broek
-- Forwarded message -- Date: Thu, 14 Apr 2005 00:41:40 -0500 From: Jim and Laura Ahl <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Python backwards program I thought you were on me a bit but I am so frustrated at this point. My instructor wrote and to

Re: [Tutor] Python backwards program (fwd)

2005-04-14 Thread Danny Yoo
-- Forwarded message -- Date: Thu, 14 Apr 2005 00:41:40 -0500 From: Jim and Laura Ahl <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Python backwards program I thought you were on me a bit but I am so frustrated at this point. My instructor wrote and

Re: [Tutor] Python backwards program (fwd)

2005-04-13 Thread Danny Yoo
> I cannot write a program that gives me a double letter. > I can get each letter separate or pieces or parts of the word Hi Jim, [Please don't reply just to me: use the Reply-to-All feature on your email program. This allows your reply to be seen by the rest of us here. I want to make sure yo

Re: [Tutor] Python backwards program (fwd)

2005-04-13 Thread Danny Yoo
-- Forwarded message -- Date: Wed, 13 Apr 2005 09:01:16 -0500 From: Jim and Laura Ahl <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Python backwards program (fwd) Danny I cannot write a program that gives me a double letter. I can get

RE: [Tutor] Python backwards program (fwd)

2005-04-12 Thread Tony Meyer
> We will not do your homework for you [snip] The slicing answer I posted is possibly the answer, but I assume that the loop solution, which I didn't post (in Python), is what is actually required. If slicing is what is wanted, then I apologise for giving an answer! :) =Tony.Meyer _

RE: [Tutor] Python backwards program (fwd)

2005-04-12 Thread Tony Meyer
> I have read about loops, strings, tuples. I am taking this > class on distance education and I am lost with this > assignment. I have read what Tony has wrote and that does me > no good. I do not understand what he is talking about. Which bits? The whole lot? I teach university students

Re: [Tutor] Python backwards program (fwd)

2005-04-12 Thread Lee Cullens
for the slicing see: http://docs.python.org/lib/typesseq.html for a longhand loop approach see: http://docs.python.org/tut/node6.html#SECTION00620 On Apr 13, 2005, at 12:46 AM, Danny Yoo wrote: -- Forwarded message -- Date: Tue, 12 Apr 2005 22:37:44 -0500 From: J

Re: [Tutor] Python backwards program (fwd)

2005-04-12 Thread Danny Yoo
Hello Jim, > I have read about loops, strings, tuples. Can you show us an example of a loop? Can you show us the last program that you've written? It sounds like you've done a lot of reading. The problem with learning how to program is that you can't just read it: you actually have to write

Re: [Tutor] Python backwards program (fwd)

2005-04-12 Thread Danny Yoo
-- Forwarded message -- Date: Tue, 12 Apr 2005 22:37:44 -0500 From: Jim and Laura Ahl <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Python backwards program I have read about loops, strings, tuples. I am taking this class on distance education and I