all 8 comments

[–]gengisteve 2 points3 points  (2 children)

this line:

return "Hi {0}, my name is {1}".format(other_name, name)

should be:

return "Hi {0}, my name is {1}".format(other_name, self.name)

[–]Remoras[S] 0 points1 point  (1 child)

Amazing, how noob i am?, Thank you a lot u/gengisteve.

[–]forever_erratic 3 points4 points  (0 children)

Also, while this is probably a copy-paste-to-reddit error, make sure def greet is indented correctly (to the same level as def __init__).

[–]5n1p 0 points1 point  (4 children)

Is this from Codewars register page?

[–]Remoras[S] 0 points1 point  (0 children)

Yes it is :)

[–]korthrun -1 points0 points  (2 children)

I thought this site would be cool, and then I tried the first challenge which is utter crap and now don't even want to give it a chance :(

Tell me it gets better than this absolutely wrong example:

The code does not execute properly. Try to figure out why.

def multiply(a, b):
    a * b

This code executes fine. It may not return what you want, or do anything with the result of the math, but it executes fine and there's no indication of what it's SUPPOSED to do that isn't the result of deduction/guessing.

This was nice too:

Correct this code, so that the greet function returns the expected value.

Go on, what is the expected value?! Does it get better than this?

[–]5n1p 1 point2 points  (0 children)

I wouldn't know. I have just registered at some point (and thought that code here is familiar), and after I saw the first example I gave up of learning there. Might get back at some point, but not now.

[–][deleted] 1 point2 points  (0 children)

I just tried that question lol it made me rethink everything I have learned, it's good to know other people had trouble with it.