• Function in Python
  • def myMax(list):
  •     max = list[0]
  •     for x in list:
  •         if x > max :
  •             max = x
  •     return max


1. Suppose list1 is [2446,134,12456,129], what is max(list1)?
    2446
    134
    12456
    129

2. What is length of list?
    1
    2
    3
    4

3. At the start of process which element will represent currentMax?
    134
    2446
    12456
    Error