title: Python 3.5 'list' object has no attribute 'min' and unorderable types: str() < int() and
body: <p>I'm trying to follow this tutorial <a href="https://www.tutorialspoint.com/python/list_min.htm" rel="nofollow noreferrer">here</a> using python 3.5, however I'm getting errors instead of the expected results. Also, I would appreciate if you explain what the indicated line below does. </p>
  
  <pre><code>import matplotlib.pyplot as plt
  x=[1,2,3,4,5]
  y=[1,2,3,4,5]
  
  list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
  print ("min value element : ", min(list1))
  print ("min value element : ", min(list2))
  
  plt.scatter(x, y,  color='red') 
  #please explain this line:
  plt.plot([y.min(), y.max()], [y.min(), y.max()], color='blue', linewidth=3) 
  
  plt.show()
  </code></pre>