[Tutor] Just Joined!

Johnson Tran aznjonn at me.com
Fri May 13 12:57:00 CEST 2011


Okay I think I understand now. Is there a module i need to import though when defining ?I did a help("module"), not sure which module is the correct one to make swapcase.center work properly...


On May 12, 2011, at 10:17 AM, Alan Gauld wrote:

> 
> "Alex Smith" <alexsmith24871 at yahoo.com> wrote
>> SwapcaseAndCenter('hello', 10) I don't understand how from your example you get an output ...I get the below error:
>> NameError: name 'SwapcaseAndCenter' is not defined
> 
> Wayne was showing how it should work. As Python says the function is not defined yet.
> 
> Defining the function so that is does do what Wayne showed is your homework! :-)
> 
> -- 
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> 
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list