Hi, thanks for the suggestion!
#1 is fixed, #2 is not actual because there are no code examples as is, but result of code invocation in console.
I'd suggest updating the description to have the Markdown headings rendered properly.
Correct syntax: #Examples Python, Ruby: => # Examples Python, Ruby:
#Examples Python, Ruby:
# Examples Python, Ruby:
As a minor improvement, code blocks could be annotated with specific language:
<language specific code block>
nice one :)
interesting. Did not think to declare the array with the for loop
Not needed, in principle, and if you're speaking to genius. I made three: beforeTaxes, taxOnProfit and afterTaxes. More memory used, more lines, but much more clear. The only think I didn't see was that '1-tax' thing that I don't get yet.
I see a pun there x)
loops -= 1
This is what for loops are for!
The number of random tests is too low. A wrong solution can pass.
So much simplier than my solution which uses a bunch of variables that were not needed.
Python 3 should be enabled.
Using var instead of let shortens the algorithm. Let variables have block scope so they have to be initialized outside the for loop.Var variables don't have block scope and therefore are accessible outside the loop and within the function scope.
Yes I agree with goodwin64.The adjustment is not enough for the method