1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    Min and max in python

    how to write functions min and max by recreating the standard built-in functions
    min and max so that can take a combination of integers, floats, lists or
    tuples with integers and floats. and one thing there can be any number of arguments of these types
  2. #2
  3. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Rep Power
    Loops (for, while, comprehensions) are your friends in this problem. Firstly you'll need to define how to compare various kinds of tuples with numbers. Never mind all this difficult work claudia_the_lazy. Go back to the Delta Phi fraternity where you can suck down more of that marvelous blue Jim Jones koolade.

    Comments on this post

    • Jacques1 agrees : Some people are too lazy to even write down a question. :-(
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo