mindblow

• ###### astolatcommented on "Difference between years. (Level 1)" python solution

I thought about this but thought there might be some longer years thrown in exactly because of this. Then again, "YYYY" does imply only four-digit years would be used...

• ###### ShinuTokicommented on "Grasshopper - Terminal game combat function" python solution

This one looks both, clever and clean.

• ###### Infuzibilcommented on "Grasshopper - Terminal game combat function" python solution

Writing clean code is more important than writing clever code.

• ###### Li760commented on "Difference between years. (Level 1)" python solution

Interesting solution!

• ###### FarDScommented on "String cleaning" python solution

what is it '\D'?

• ###### r4ng3lcommented on "Grasshopper - Terminal game combat function" python solution

why cant I be this clever?

Sure thing.

• ###### mdolatacommented on "Find Multiples of a Number" python solution

Ok, I see where is my problem. I wrote solution for Python3, where range() function returns range object. In python2 that function returns list. Thanks for help

• ###### igalcommented on "Find Multiples of a Number" python solution

I'm not sure I understand your question. For one thing, in Python a list is an object (practically everything is an object in Python) so I don't understand this objection. As far as how this works, all it does is call the "range" function:

https://docs.python.org/2/library/functions.html#range

Have you tried reading the relevant documentation? If so, maybe you could say a little bit more about what you find confusing. You could also try asking for help on the Codewars gitter:

https://gitter.im/Codewars/codewars.com/kata-solving-help

• ###### mdolatacommented on "Find Multiples of a Number" python solution

how does this work? This function returns range object instead of list. Am I missing something?

• ###### Xyruscommented on "simple validation of a username with regex" python solution

PEP8: "Comparisons to singletons like None should always be done with is or is not , never the equality operators. "

• ###### Xyruscommented on "Fix the Bugs (Syntax) - My First Kata" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### Xyruscommented on "Fix the Bugs (Syntax) - My First Kata" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### Xyruscommented on "Difference between years. (Level 1)" python solution

This comment is hidden because it contains spoiler information about the solution