Ad
  • Custom User Avatar

    Ok, it works this way, thank you, but as I hardcoded

    name = 'Jane'

    I feel like I didn't do the specification... I don't use the name of the original Thing, and the instructions seem to ask it.
    By the way, I find the instruction of the whole kata not really clear...

  • Custom User Avatar

    just declare the variable as a constant in the global scope. That part of the task makes no real sense, just hack it.

  • Custom User Avatar

    I don't know if I must give up or if there is an issue.
    I use python.
    The last part of this kata asks to create a function that can use 'name' as element to build the string.
    However, from a class method, 'name' is not defined, self.name should be called instead or be given as parameter
    I tried to provide 'name' with global variable, but codewars doesn't allow that (but it works on my machine).
    As I understand, I must provide 'name' out of the scope but I don't know any way that allow me to do that. I thought about using function attributes too, but it would require to call 'fct.name', and this is not the case too