old_contents: # Return the number of even ints in the given array.
  
  # count_evens([2, 1, 2, 3, 4]) → 3
  # count_evens([2, 2, 0]) → 3
  # count_evens([1, 3, 5]) → 0
  
  def count_evens(nums):
    count = 0
    for i in nums:
      if i % 2 == 0:
        count += 1
    return count
  
  print(count_evens([2, 1, 2, 3, 4]))
  print(count_evens([2, 2, 0]))
  print(count_evens([1, 3, 5]))
  
new_contents: # Return the number of even ints in the given array.
  
  # count_evens([2, 1, 2, 3, 4]) --> 3
  # count_evens([2, 2, 0]) --> 3
  # count_evens([1, 3, 5]) --> 0
  
  def count_evens(nums):
    count = 0
    for i in nums:
      if i % 2 == 0:
        count += 1
    return count
  
  print(count_evens([2, 1, 2, 3, 4]))
  print(count_evens([2, 2, 0]))
  print(count_evens([1, 3, 5]))
  
subject: Update count_evens.py