title: Create a Student-Age graph in Python-Matplotlib
body: <pre><code>import matplotlib.pyplot as plt
  x = ['Eric','Jhon','bill','Daniel']
  y = [10, 17, 12.5, 20]
  plt.plot(x,y)
  plt.show()
  </code></pre>
  
  <p>When I run this code, I get this error
  <code>ValueError: could not convert string to float:</code></p>
  
  <p>I want all names in list <code>x</code> at x-axis and corresponding ages are in second list <code>y</code> which will be used in bar graph.</p>
  
  <p>So here I have 1 more question
  Is it a good way to do in my case(I mean if we can create a list of tuples(name,age)) and that would be easy?? or something else.</p>