title: Manage empty list/invalid input when finding max/min value of list (Python)
body: <p>I'm finding max value and min value of a list by using <code>max(list)</code> and <code>min(list)</code> in Python. However, I wonder how to manage empty lists. </p>
  
  <p>For example if the list is an empty list <code>[]</code>, the program raises <code>'ValueError: min() arg is an empty sequence'</code> but I would like to know how to make the program just print <code>'empty list or invalid input'</code> instead of just crashing. How to manage those errors?</p>