Write an expression (not a statement!) whose value is the largest of population1, population2, population3, and population4 by calling max2.
LANGUAGE: PYTHON
CHALLENGE:
assume that max2 is a function that expects two int parameters and returns the value of the larger one.
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 max2.
SOLUTION:
max(max(population1, population2), max(population3, population4))