Tank D shows 9.8% — expected 9.75? FRFreyaLOP 14 Sep, 08:26 I set tank_d = 9.75 and the output shows 9.8%.
AMAmeliaRuns14 Sep, 10:41replies: 2That's correct! The expected output shows 9.8% because all levels are printed with one decimal place. The value is still 9.75 internally.
MAMateoG15 Sep, 21:36And the "Low tanks: B, D" line is a nice use of collecting names in a list during the loop and joining them after.
Comments 4
Log in to join the discussion.
Log in Create accountThat's correct! The expected output shows 9.8% because all levels are printed with one decimal place. The value is still 9.75 internally.
Oh, I was about to "fix" something that wasn't broken.
"none" when the list is empty — don't forget that branch.
And the "Low tanks: B, D" line is a nice use of collecting names in a list during the loop and joining them after.