"Alex Smith" <alexsmith24...@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@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor