title: How to convert lists of class objects to a list of their attributes
body: <p>guys! So I recently started learning about python classes and objects. 
  For instance, I have a following list of strings:</p>
  
  <pre><code>alist = ["Four", "Three", "Five", "One", "Two"]
  </code></pre>
  
  <p>Which is comparable to a class of Numbers I have:</p>
  
  <pre><code>class Numbers(object):
     One=1
     Two=2
     Three=3
     Four=4
     Five=5
  </code></pre>
  
  <p>How could I convert <code>alist</code> into </p>
  
  <pre><code>alist = [4, 3, 5, 1, 2]
  </code></pre>
  
  <p>based on the class above? </p>
  
  <p>My initial thought was to create a new (empty) list and use a <code>for loop</code> that adds the corresponding object value (e.g. <code>Numbers.One</code>) to the empty list as it goes through <code>alist</code>. But I'm unsure whether that'd be the most efficient solution. </p>
  
  <p>Therefore, I was wondering if there was a simpler way of completing this task using Python Classes / Inheritance.</p>
  
  <p>I hope someone can help me and explain to me what way would work better and why!</p>
  
  <p>Thank you!!</p>