[Tutor] Just Joined!
Alan Gauld
alan.gauld at btinternet.com
Thu May 12 19:17:28 CEST 2011
"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/
More information about the Tutor
mailing list