title: Finding maximum value in a loop
body: <p>This is just an introductory class code, and i'm wondering how to find the max of all the next_value variable and compare it to the first_value to print the maximum. My if statement is close but I'm not sure how to fix it </p>
  
  <pre><code>maximum = 0.0
  value = int(input("Enter the number of values to process: "))
  
  first_value = float(input("First value: "))
  next_value_total = 0
  
  
  for i in range(1, value):
      next_value = float(input("Next value: "))
      next_value_total += next_value
      if first_value &lt;= next_value:
          maximum = next_value
      elif first_value &gt; next_value:
          maximum = first_value
  
  total = next_value_total + first_value
  print("The total is {:.1f}".format(total))
  print("The maximum is {:.1f}".format(maximum))
  </code></pre>