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


#1

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 .


#2

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


#3

@guchuuu
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


#4

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