On Sun, Sep 20, 2009 at 01:19:08PM -0700, daggerdvm wrote: > assume that jade2 is a function that expects two int parameters and returns > the value of the larger one.
This really smells like a school assignment, which as a general policy we don't solve for you. But as a hint in the right direction, you might look at how parameters are passed to functions in Python (and it's irrelevant that they are int values as far as parameter passing goes, but that will simplify your expression for the sake of keeping the assignment easy to do). You might want to look at some built-in functions which will look at a list of values and tell you which is biggest or smallest. What do you think you can do with those pieces? > > Also assume that four variables, population1 , population2 , population3 > , and population4 have already been defined and associated with int > values. > > Write an expression (not a statement!) whose value is the largest of > population1 , population2 , population3 , and population4 by calling > jade2 . > > how can i do this??? > > > -- > View this message in context: > http://www.nabble.com/eazy-python-question-involving-functions-and-parameters-tp25530128p25530128.html > Sent from the Python - tutor mailing list archive at Nabble.com. > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor -- Steve Willoughby | Using billion-dollar satellites st...@alchemy.com | to hunt for Tupperware. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor