[Tutor] Need help with function coding.
Joel Goldstick
joel.goldstick at gmail.com
Thu Mar 7 21:40:38 CET 2013
On Thu, Mar 7, 2013 at 3:23 PM, akuma ukpo <johnnyukpo at 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 at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130307/b1a2c961/attachment.html>
More information about the Tutor
mailing list