[Tutor] Need help with function coding.

akuma ukpo johnnyukpo at gmail.com
Thu Mar 7 22:28:06 CET 2013


i now know how to define functions.

My problem is i don't know what particular function that converts gallons
directly to cups.

However, i derived a function that converts celsius to fahrenheit (9/5 *
temperature + 32) tested it using python and it passed the test.

I need a function for gallons to cups in a similar format.

On Thu, Mar 7, 2013 at 4:14 PM, Danny Yoo <dyoo at hashcollision.org> wrote:

> On Thu, Mar 7, 2013 at 1:55 PM, akuma ukpo <johnnyukpo at gmail.com> wrote:
> > i don't know how to write functions. so i guess that is where i'm stuck.
> i
> > was following a tutorial on my lab document but i still did not
> understand
> > what to do. i will attach the pdf and python files as well.
>
> I am CCing the rest of the Python tutor mailing list.  Please use
> reply-to-all when responding to messages on Tutor.  I'm omitting the
> attachments you sent me, as they're not that useful to me.
>
>
> Since you do not know how to write functions yet, I would strongly
> focus on solving that confusion first.  If you don't know how to write
> any functions, then you will have difficulty with your problem set.
>
>
> Has your instructor given you any information on how to write a
> function?  For example,
>
>     http://www.learnpython.org/page/Functions
>



-- 
*Akuma*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130307/c8daa3d0/attachment.html>


More information about the Tutor mailing list