10 lines
216 B
Python
10 lines
216 B
Python
# maxims.py
|
|
# This is not a valid Python module - Don't run it.
|
|
|
|
>>> a = [5, 9, 2, 4, 7]
|
|
>>> b = [3, 7, 1, 9, 2]
|
|
>>> c = [6, 8, 0, 5, 3]
|
|
>>> maxs = map(lambda n: max(*n), zip(a, b, c))
|
|
>>> list(maxs)
|
|
[6, 9, 2, 9, 7]
|