r()
>
> print lower_case(‘AbCdEfG’)
>
>
> From: python-list-bounces+joe=goldthwaites@python.org
> [mailto:python-list-bounces+joe=goldthwaites@python.org] On Behalf Of
> Cathy James
> Sent: Tuesday, January 18, 2011 3:02 AM
> To: python-l...@python.org
> Su
aites@python.org
[mailto:python-list-bounces+joe=goldthwaites@python.org] On Behalf Of
Cathy James
Sent: Tuesday, January 18, 2011 3:02 AM
To: python-list@python.org
Subject: newby qn about functions
#This has to be very simple, but I don't get it-please help
def
lower_case(s):
> """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: %
#This has to be very simple, but I don't get it-please help
def *lower_case*(s):
#return s
print(s)
#return s.lower()
print(s.lower())
s=*"Testing Functions-lower case: "
*
lower_case(s)
*"""how can i use a return statement to write a function that returns the
string "Testi