Join the discussion
Ask questions, share your code and help other Python learners. It's free.
Log in to comment, vote and follow discussions.
Continue with Google
or
Already have an account?
New to Space Python?
Check your inbox
We sent an activation link to . Open it in this browser and you'll come straight back here, logged in.
Nothing after a few minutes? Check your spam folder.
Comments 4
Join the discussion CommentAlready have an account? Log in
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.
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.