Ad
  • Default User Avatar

    Thanks for your post.

    Do NOT use any of the following words (although they are not strictly Python reserved words, they conflict with the names of commonly-used Python functions):
    
    Data	Float	Int	array	close	float	int	input open	range	type	write	zeros
    

    You could use nested function when possible.
    Happy you found the reason :-)

  • Default User Avatar

    OK. I see the line in the tests. But AFAIK range in 3.x takes 2 arguments as well as in 2.7 so I don't understand why you got this TypeError. I tried different solutions with the different proposed versions of Python (2.7.6, 3.4.3, 3.6.0) for this kata and had no problem. Which version did you use? As I can see CW proposes the 3.4.3.
    Small note: no need to downvote my post. It doesn't make things easier.

  • Default User Avatar

    454 guys passed the Python kata; I just tried several solutions and had no problem. So I think it is not an issue of the kata but maybe a problem in your code.