[Tutor] Tutor Ilde running problems

2011-11-16 Thread Nidian Job-Smith
Hi all, Just installed python 2.7.2 on my windows 7 32-bit laptop. However when I attempt to run idle it wont open (nothing happens) Wondered if any of you have had this problem and have any tips? Cheers> ___ > Tutor maillist - Tutor@python.org > To u

[Tutor] (no subject)

2011-11-17 Thread Nidian Job-Smith
Hi all, I'm new to programming (thus Python), so after reading the basics, I wanted to practise what I've learnt . I've come across a beginners exercise which is to programme rot13. I've written some code but it doesn't seem to work Here it is: def rot13(s):char_low = ()result = ""

[Tutor] Rot13

2011-11-17 Thread Nidian Job-Smith
Hi all, I'm new to programming (thus Python), so after reading the basics, I wanted to practise what I've learnt . I've come across a beginners exercise which is to write the code for rot13.   I've written some code but it doesn't seem to work When I run it I get this error: NameError: glo

Re: [Tutor] Rot13

2011-11-17 Thread Nidian Job-Smith
Sorry about the code format in last E-mail. I'll attach the code in notepad, as my e-mail doesnt seem to like sending plain text.. > From: nidia...@hotmail.com > To: st...@pearwood.info; tutor@python.org > Date: Thu, 17 Nov 2011 17:45:11 + > Subject:

[Tutor] Encoding

2011-11-17 Thread Nidian Job-Smith
Hi all, In my programme I am encoding what the user has in-putted. What the user inputs will in a string, which might a mixture of letters and numbers. However I only want the letters to be encoded. Does any-one how I can only allow the characters to be encoded ?? Big thanks,

Re: [Tutor] Doctest error!

2011-11-17 Thread Nidian Job-Smith
> Date: Thu, 17 Nov 2011 22:49:33 -0500 > From: d...@davea.name > To: nidia...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor] Doctest error! > > On 11/18/2011 10:29 AM, John wrote: > > > > Hi all, > > When i run a doctest on this piece of code

Re: [Tutor] IndexError: list index out of range

2011-11-21 Thread Nidian Job-Smith
To answer your questions Steven What is the intention of this function? The name given doesn't mean anything to me. The parameters "names" and "step" don't seem meaningful. I can see what the function does: it deletes bits of something, probably a list, in a convoluted way, eventually causing