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
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
"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
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
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
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
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