Re: [Tutor] regarding my strange issue output not showing up as floats

2014-06-21 Thread Mark Lawrence
On 21/06/2014 01:05, Deb Wyatt wrote: never mind. I figured it out. I was using %d instead of %f in my print statements. duh. Deb in WA, USA A good job as it would have been rather difficult from your original post, as Jay Lozier and Alan Gauld have pointed out. So please check this ou

Re: [Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Alan Gauld
On 21/06/14 00:59, Deb Wyatt wrote: I see you solved it but for future reference... I'm using Python 2.7 for this assignment. input is as follows (not in code order): balance = 4213 annualInterestRate = 0.2 monthlyPaymentRate = 0.04 payment = monthlyPaymentRate * balance balance = balance - p

Re: [Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Jay Lozier
On 06/20/2014 07:59 PM, Deb Wyatt wrote: Hello. I hope everyone is having a good day. I am working on an assignment that is supposed to output floats. I'm using floats in the computations and according to Python's rules the output should be floats, but it's not. When I test in Python shel

Re: [Tutor] Fwd: Re: Tips

2014-06-21 Thread Mark Lawrence
On 21/06/2014 18:23, Alan Gauld wrote: On 21/06/14 01:45, Alex Kleider wrote: The only applicability that fits in with anything I've experienced has to do with the necessity of globals to represent command line parameters That's not a necessity and I hardly ever do that... :-) But it is one p

[Tutor] regarding my strange issue output not showing up as floats

2014-06-21 Thread Deb Wyatt
never mind. I figured it out. I was using %d instead of %f in my print statements. duh. Deb in WA, USA FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to fin

[Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Deb Wyatt
Hello. I hope everyone is having a good day. I am working on an assignment that is supposed to output floats. I'm using floats in the computations and according to Python's rules the output should be floats, but it's not. When I test in Python shell the calculations display correctly, as flo

Re: [Tutor] Fwd: Re: Tips

2014-06-21 Thread Alan Gauld
On 21/06/14 01:45, Alex Kleider wrote: The only applicability that fits in with anything I've experienced has to do with the necessity of globals to represent command line parameters That's not a necessity and I hardly ever do that... :-) But it is one pattern for handling CL args. Other comm