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 <d...@hashcollision.org> wrote: > On Thu, Mar 7, 2013 at 1:55 PM, akuma ukpo <johnnyu...@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*
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor