Hi all.
I'm very new to programming and picked up python fairly recently as a way to gently introduce myself to programming on the advice of the internet. Whenever I see a something which has the potential to be automated I try and automate the process myself with a python script and have found this to be a good way to learn.
Saw a thread in the BQ forum where someone was describing as scenario between himself and another friend where they are going 50% on takings from MTT's and they had come to a disagreement on the owed amounts. They had encountered extra confusion because they had different buy-in amounts. I posted what I thought the totals were (probably not a great idea considering my maths has the potential to be pretty awful a lot of the time) and upon reflection I've realized my numbers were wrong.
Anyway blog over, this prompted me to create a python script to automate the process (not that it's a difficult process for most people, just I thought it would be a good task to set myself).
Would somebody with a better understanding of maths and python than me mind running the script a few times with different numbers and checking they're coming out accurately? It all looks good to me but I've found with previous projects that getting somebody else to look over them is the best way to find mistakes I may have missed. It works with python 2.7.3.
Thankyou very much.
Pokershare.py