Strings in functions


#1



i'm stuck, please help.
I do everything right, but getting error


Oops, try again. string_function('Hello') returned 'Helloword' instead of 'Helloworld'


n = "Hello"
# Your function here!
def string_function(s):
    return s + "word"
print string_function(n)


#2

is not the same thing as world


#3

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