Re: [Tutor] Rot13

2011-11-17 Thread Dave Angel
that way. But I'm currently using it under Linux. From: nidia...@hotmail.com To: st...@pearwood.info; tutor@python.org Date: Thu, 17 Nov 2011 17:45:11 +0000 Subject: [Tutor] Rot13 Hi all, I'm new to programming (thus Python), so after readin

Re: [Tutor] Rot13

2011-11-17 Thread Steven D'Aprano
Nidian Job-Smith wrote: When I run it I get this error: NameError: global name 'rot13_char' is not defined [...] Any ideas where i'm wrong? You have a function called "rot13", and *another* function called "rot13", which will over-write the first one. But you have no function called "rot

Re: [Tutor] Rot13

2011-11-17 Thread Nidian Job-Smith
0000 > Subject: [Tutor] Rot13 > > > 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 writte

[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