title: How do I move to the next item in a list using loops?
body: <p>I need to create a subroutine in python which identifies the highest number in a list, but I don't know how to move to the next item in the list using a loop</p>
  
  <p>I've tried to add 1 to the counter, but I am not entirely sure of the of the syntax</p>
  
  <pre><code>number = []
  for i in range(0, 5): # set up loop to run 5 times
      numbers = int(input('Please enter a number: '))
      number.append(numbers) # append to our_list
  tempmax = number[0]
  maximum = 0
  for i in number:
      if tempmax &gt; maximum:
          maximum = tempmax
          tempmax = number[+1]
      else:
          tempmax = number[+1]
  
  print(maximum)
  </code></pre>
  
  <p>This is what I've tried, but I don't really know how to fix it. Any tips would be appreciated.</p>