user
You have been given a series of numbers, write a program to find the maximum value among them. Output:
assistant
def findMaxValue(lst): 
  # Initialize maximum element as first element 
  maxValue = lst[0]

  # Iterate through the list
  for num in lst: 
    # Compare maximum element with each element 
    # of the list and update maximum element 
    # if current element is greater than maximum element
    if num > maxValue: 
      maxValue = num 
  
  # Return maximum element 
  return maxValue