Ad
  • Default User Avatar

    I am writing on Python 3.4
    Have you ever had situation that 2nd test gave back not right value with the same parameters?
    I execute it on my machine, all is ok, interpreters are the same. I have runned many examples below and all are right.
    What is wrong??
    bouncingBall(30, 0.66, 1.5) gives me on local machine 15, server gives 18
    Can smb explain? Tried to rewrite code here several times, the same

  • Custom User Avatar

    I don't think it's good practice to generate new strings in the for loop. That's what's happening each time you're appending to answer.

  • Custom User Avatar

    this solution is best for the beginer to understand how to resove this problem