Re: [Tutor] Why do I not get the same results for these two functions when I pass 7 as an argument?

2013-05-03 Thread Nonso Ibenegbu
swapped. But how are they different? On Fri, May 3, 2013 at 8:07 AM, Mark Lawrence wrote: > On 03/05/2013 07:10, Nonso Ibenegbu wrote: > >> Hello everyone, >> Wonder if someone can help me understand why these two codes do not give >> the same results for what looks essentia

[Tutor] Why do I not get the same results for these two functions when I pass 7 as an argument?

2013-05-02 Thread Nonso Ibenegbu
Hello everyone, Wonder if someone can help me understand why these two codes do not give the same results for what looks essentially the same ("?") code. The argument passed is 7. def rental_car_cost(days): payment = days * 40 if days >= 7: return payment - 50 elif days >= 3 <