• ###### akil47commented on "Invert values" python solution

thank you 👍.it was really useful

• ###### Chrono79commented on "Invert values" python solution

They iterate lst, not x, it's called list comprehension, you can read more here: https://www.programiz.com/python-programming/list-comprehension

• ###### toppingcommented on "Invert values" python solution

Edit: didn't mean to post this

• ###### Chrono79commented on "Invert values" python solution

Read the error message you get:

TypeError: 'int' object is not iterable

x is an int, you can't make a list of it. Even if you could, it would return a list of the first number.

• ###### akil47commented on "Invert values" python solution

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

• ###### yrprthcommented on "Strings: starts with" python solution

If description doesn't say otherwise then using already existing functions is pretty good approach. In any case everyone is free in ways of solving.

• ###### NinjaFoxescommented on "Strings: starts with" python solution

this is technically legal, and elegant, and the authors can't be faulted for using this because it wasn't prohibited, but it defeats the purpose of the kata if you can just use a built in string method at least in my mind.

• ###### globicommented on "The falling speed of petals" python solution

this gives error when v is 0. should be >=

• ###### NinjaFoxescommented on "Alternate case" python solution

I did not know swapcase existed. now I know

• ###### Brolafcommented on "Alternate case" python solution

Well... a man learns all his life.

• ###### NinjaFoxescommented on "Count Odd Numbers below n" python solution

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

• ###### shnarflycommented on "Alternate case" python solution

Oh man, that's way simpler than what I did.

Nailed it!

• ###### aaronrauschcommented on "Alternate case" python solution

Glad that I now know this shortcut!

• ###### anter69commented on "Calculate BMI" python solution

`*2` is not the same as `**2`