Re: looking for advice python

2013-01-28 Thread twiztidtrees
On Sunday, January 27, 2013 1:57:47 PM UTC-5, twizti...@gmail.com wrote: > I am in a class and was just looking for different advice. This is the first > time iv ever tried to do this. That's all that iv taken from two chapters and > wondering how bad I did. I also like to learn. Thanks for ev

Re: looking for advice python

2013-01-27 Thread twiztidtrees
I am in a class and was just looking for different advice. This is the first time iv ever tried to do this. That's all that iv taken from two chapters and wondering how bad I did. I also like to learn. Thanks for everyones input -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for advice python

2013-01-26 Thread Dave Angel
On 01/26/2013 05:26 PM, twiztidtr...@gmail.com wrote: Hey I'm new to programming and I have been working on calculating miles per gallon. iv posted below what I have and constructive criticism would be wonderful. Thanks A good post for the python-tutor mailing list. If you want help with a

Re: looking for advice python

2013-01-26 Thread Chris Angelico
On Sun, Jan 27, 2013 at 9:26 AM, wrote: > miles = int(string_miles) > gas = int(string_gas) > > #used to calculate mpg through division > mpg = miles/gas > > print(float(string_miles)) > print(float(string_gas)) > print('Your miles per gallon is', format(mpg,'.2f')) Welcome aboard! You turn you

looking for advice python

2013-01-26 Thread twiztidtrees
Hey I'm new to programming and I have been working on calculating miles per gallon. iv posted below what I have and constructive criticism would be wonderful. Thanks #This is a program used to calculate miles per gallon #variable used to gather miles driven string_miles = input('How many mile