Lists and Functions lesson 7


#1

Oops, try again. string_function('Waynes') returned 'Helloworld' instead of 'Waynesworld'

Where did Waynes come from???


# Your function here!
def string_function(s):
    s = 'world'
    return n +  s 

print string_function(n)
This is what I get
Helloworld
None



#2

Try changing the parameter to n.


#4

Thanks Don't know how I missed that!


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.