Ad
  • Custom User Avatar

    The description is confusing.

    notes: if the amount each week is less than the minimum accepted, return -1.00

    Which step does this comparison take? After the rounding operation or before it?

    For example, we calculated a result 0.99, and the minimum accepted is 1. If compare them after rounding, the final result should be -1; otherwise, 1.

    the function should return a float with 2 digits after the point

    This implies that the rounding operation should be truncate the number? But actually the rounding operation is round to nearest.

    (ie: 5 -> 5.00 , 6.34234 -> 6.34 (no rounding up)

    Again, words no rounding up misleading us the the rounding operation is rounding down

    And, Please HIT the Enter key when the sentence ends. Many parts of the description are needed.

    EDIT: HIT the Enter key --> HIT the Enter key twice ;-)

  • Custom User Avatar

    The instructions need to specify the order of operations to prevent frustrating rounding errors.

  • Custom User Avatar

    Use line break and other components to clean up the description instead of just squishing everything together, like
    from

    Parameters: money = integer representing how much money you won current_age = integer representing their current age death_age = age when they will die minimum_accepted = the minimum amount that you can possibly live confortably and live each week

    to

    Parameters:

    • money = integer representing how much money you won
    • current_age = integer representing their current age
    • death_age = age when they will die
    • minimum_accepted = the minimum amount that you can possibly live confortably and live each week
  • Custom User Avatar

    Never put reference solution in the Preload section or you will get this.

  • Custom User Avatar

    Duplicate of many Fibonacci's here.