On Thu, Mar 7, 2013 at 3:23 PM, akuma ukpo <johnnyu...@gmail.com> wrote:
> I have a python lab to do but for some reason i can't understand. > > > (a) Write a function which converts from gallons to cups2 > (b) Now we’d like to be able to convert from cups to milliliters, since > metric measurements > are easier to convert between. Implement a function which does this. > (c) We’d also like to be able to easily convert gallons into milliliters, > so implement a > function which does this > > Do you know how to define a function? Do you know how your function can return a value? Do you know the formula for converting gallons to cups. Hint: there are 8 ounces in a cup and 128 ounces in a gallon. There are a thousand milliliters in a liter. I'm sure you can google how many liters in a gallon. So write what you have tried so far > -- > *Akuma* > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Joel Goldstick http://joelgoldstick.com
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor