Re: newby qn about functions

2011-01-18 Thread rantingrick
On Jan 18, 12:01 pm, "Joe Goldthwaite" wrote: > I'm not sure I understand the question completely but maybe the function > below does what you want. > > def lower_case(s): > >     return “Testing Functions-lower case: ” + s.lower() > > print lower_case(‘AbCdEfG’) > > __

RE: newby qn about functions

2011-01-18 Thread Joe Goldthwaite
I'm not sure I understand the question completely but maybe the function below does what you want. def lower_case(s): return “Testing Functions-lower case: ” + s.lower() print lower_case(‘AbCdEfG’) From: python-list-bounces+joe=goldthwaites@p

Re: newby qn about functions

2011-01-18 Thread Noah Hall
> """how can i use a return statement  to write a function that returns the > string "Testing Functions-lower case: "and the lowercase representation of > its string parameter""" If I uncomment the above, nothing outputs to > console:( def lower_case(s): return "Testing Functions-lower case: %