Tank D shows 9.8% — expected 9.75?

FreyaLOP

I set tank_d = 9.75 and the output shows 9.8%.

5

Comments 4

Log in to join the discussion.

Log in Create account
  1. AmeliaRunsreplies: 2

    That's correct! The expected output shows 9.8% because all levels are printed with one decimal place. The value is still 9.75 internally.

    6
    1. FreyaLOPreplies: 1

      Oh, I was about to "fix" something that wasn't broken.

      0
    2. MateoG

      And the "Low tanks: B, D" line is a nice use of collecting names in a list during the loop and joining them after.

      3