Discuss Min and max in python in the Python Programming forum on Dev Shed. Min and max in python Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Time spent in forums: 59 m 25 sec
Reputation Power: 0
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
Time spent in forums: 1 Month 2 Weeks 4 Days 6 h 26 m 43 sec
Reputation Power: 403
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.
[code]Code tags[/code] are essential for python code!