Re: [Tutor] Just Joined!

2011-05-13 Thread Johnson Tran
You can ignore last question, was trying to figure out Alex's issue as well, but I got it now. sorry for the spam! On May 13, 2011, at 3:57 AM, Johnson Tran wrote: > Okay I think I understand now. Is there a module i need to import though when > defining ?I did a help("module"), not sure whi

Re: [Tutor] Just Joined!

2011-05-13 Thread Johnson Tran
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" wrote >> SwapcaseAndCenter('hello

Re: [Tutor] Just Joined!

2011-05-12 Thread Alan Gauld
"Alex Smith" 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 f

Re: [Tutor] Just Joined!

2011-05-12 Thread Alex Smith
t input: >>> swapcase.center('hello',10) Traceback (most recent call last):   File "", line 1, in     swapcase.center('hello',10) TypeError: an integer is required ____ From: Wayne Werner To: Alex Smith Cc: "tutor@p

Re: [Tutor] Just Joined!

2011-05-12 Thread Wayne Werner
On Thu, May 12, 2011 at 6:34 AM, Alex Smith wrote: > Hi All, > > I just joined this list and am really new to python. > Hi! Welcome to the Python tutor list, and Python! > I have an assignment to create a function with (a_string, width) which > returns the a_string with all the lower case char

Re: [Tutor] Just Joined!

2011-05-12 Thread Walter Prins
On 12 May 2011 12:34, Alex Smith wrote: > Hi All, > > I just joined this list and am really new to python. I have an assignment > to create a function with (a_string, width) which returns the a_string with > all the lower case characters changed to upper case characters and vice > versa and cente

[Tutor] Just Joined!

2011-05-12 Thread Alex Smith
Hi All, I just joined this list and am really new to python. I have an assignment to create a function with (a_string, width) which returns the a_string with all the lower case characters changed to upper case characters and vice versa and centered; was wondering if someone could point me in th