• ###### MusicalCodercommented on "Financing a purchase" kata

test.assert_equals(amort(5.6, 133555, 60, 53), "num_payment 53 c 2557 princ 2464 int 93 balance 17571")

I kept failing this due to rounding - my int was 94

• ###### Hyrundocommented on "Is there a vowel in there?" python solution

Hello, you've been approaching this kata with the same strategy I used, but you've solved it in a much more elegant way. Very nice!

• ###### NerijusPoceviciuscommented on "Basic Mathematical Operations" python solution

If you would use python2 formatting, you would get 5 miliseconds faster executing time :)

• ###### fenring76commented on "Find Maximum and Minimum Values of a List" python solution

I tried that and the system asked me something to the effect of "Where is the code?" and wouldn't let me submit it.

• ###### __TomFoolery__commented on "Basic Mathematical Operations" python solution

what he said, just a way to format the string
{val1}{op}{val2}

• ###### Chris_Randscommented on "Basic Mathematical Operations" python solution

proper string formatting, there are various ways, only really matters for more complex cases

• ###### N3t5commented on "Basic Mathematical Operations" python solution

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

• ###### MusicalCodercommented on "Basic Mathematical Operations" python solution

For those "eval" prognosticators of danger -

I wholeheartedly agree - and if I were to actually use this in a program - then whereever "basicop" was being called would be an additional function that verified that you were entering valid data.

But for an 8kyu problem, this is the simple, basic solution.

• ###### EricPoehlsencommented on "Basic Mathematical Operations" python solution

using eval() on unknown input is dangerous!

• ###### daddepledgecommented on "Fake Binary" python solution

I think a lot of folk use single letters that imply a data type. I know I do.

e.g. c => characters, i => integer, l => list, e => generic element

• ###### Bradley Staplescommented on "Fake Binary" python solution

probably bc I copied it ahah

• ###### MrHobbitscommented on "Fake Binary" python solution

I'm guessing they used c instead of d because it was returning a string, thus c for character?

• ###### PilgrimShadowcommented on "Naming Files" python solution

Ya, I gradually worked my way to this little one-liner =)

• ###### MusicalCodercommented on "Naming Files" python solution

very similar to what I did

• ###### MusicalCodercommented on "Keep the Order" python solution

this is what I did as well!