Re: [Tutor] Tax Brand

2013-10-08 Thread Alan Gauld
On 09/10/13 00:39, Steven D'Aprano wrote: Ah, the good ol' "Make Random Changes In The Hope That The Error Will Go Away" strategy! :-) When I was a young and naive apprentice we had a gnarled old training instructor who called this the "poke n' hope" strategy for fixing faults... (Actually, he

Re: [Tutor] Tax Brand

2013-10-08 Thread Steven D'Aprano
On Tue, Oct 08, 2013 at 10:38:02PM +0200, Thabile Rampa wrote: > taxBAND = None You set taxBAND to None here. This is the only time you assign a value to taxBAND. > if (GrossSalary < 5): > taxdeducted= 0.05*(GrossSalary -costs) > netSalary = GrossSalary - taxdeducted > while Gr

Re: [Tutor] Tax Brand

2013-10-08 Thread Alan Gauld
On 08/10/13 21:38, Thabile Rampa wrote: deductions. I have seemingly worked everything fine until the part where I am supposed to tell them what tax Band they are in (i.e 1,2,3 or 4). My code is like this: taxBAND = None GrossSalary = None costs = None taxdeducted =None netSalary = None You d

[Tutor] Tax Brand

2013-10-08 Thread Thabile Rampa
Hello, So my task is to get information from a user about their salary and then find their net salary and tax deductions. I have seemingly worked everything fine until the part where I am supposed to tell them what tax Band they are in (i.e 1,2,3 or 4). My code is like this: taxBAND = None Gros