title: How to print out every input?
body: <p>I'm suppose to write a code using arrays and inputs then split the list from people above 16 and people below 16. but can't seem to get the code to print every input. it only wants to print the last input I did. Here is what I have so far:</p>
  
  <pre><code>A = [0 for x in range (10)]
  B = [0 for x in range (10)]
  
  for i in range (10):
      A[i] = input('enter A name: ')
      B[i] = input('enter the age to go with the name: ')
      print()
      B2 = int(B[i])
  
  if B2 &gt; 16:
      print(B2, A[i])
  
  if B2 &lt; 16:
      print(A[2], B2)
  </code></pre>