Please help with this problem

Given the following function definitions, provide ONE line of Python code to cause a variable called me to be equal to “IAMAWINNER”.

def apple(s):
if len(s) == 0:
s += “A”
elif s[0] == “A”:
s += “M”
s = “I”
return s

def pear(s):
if len(s) > 0:
s = “WIN” + s
if s[ len(s) - 1] == “N”:
s += “ER”
return s


If you would like to discuss something else, enclose the code between two lines with triple backticks:

# The code will be here

Show us what you have already tried and what are your specific difficulties.

1 Like