[Tutor] Need help with function coding.

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Mar 7 21:56:39 CET 2013


On 07/03/2013 20:23, akuma ukpo 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
>
> --
> /Akuma/
>

I'll assume that you don't know how a cup is defined so please read this 
http://gwydir.demon.co.uk/jo/units/volume.htm#small.

Then write some code, test it and if you have problems please get back 
to us.

-- 
Cheers.

Mark Lawrence



More information about the Tutor mailing list