avatar Bite 206. Calculate and evenly split the bill

Three old friends Bob, Mary, and Alice meet at PyCon and decide to go out to dinner together. They have a wonderful time discussing lambda calculus and laughing about import antigravity.

At the end of the meal, being such good friends they decide to split the check "evenly" 3 ways.

Given an item total add tax (based on the given tax rate) and a tip (applied post-tax) producing a grand total. Next, split the grand total amount as evenly as possible amongst the friends. The sum of the per person split should be equivalent to the grand total.


Complete check_split(item_total, tax_rate, tip, people), see the docstring for input parameters and expected return values.

Good luck and keep calm and code in Python!

Login and get coding
go back Intermediate level
Bitecoin 3X

87 out of 100 users completed this Bite.
Will you be Pythonista #88 to crack this Bite?
Resolution time: ~105 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 7.64 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help