Where i have done mistake . Tired of checking concatenation still didn't get the error


def string_function(s):
    return "s" + "world"
print string_function(n)

assume indentation here for return statement , actually editor is not displaying it properly.I have that on my original code .


Remove the quotes around s in the return statement, or you'll get "sworld" instead of "Helloworld".


I made an edit to your post take a look at it and see what I did to your code to make the indents show.you can apply it to all code that you post here


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