title: Replacing multiple string value in a list Python
body: <p>I have a list like  <code>list = ['happy', 'angry', 'sad', 'emotion']</code>.</p>
  <p>So I want to replace the list and make new list like</p>
  <pre><code>new_list=[1, 0, 0, 'happy']
  </code></pre>
  <p>following is the my code and it does not work.</p>
  <pre><code>if emotion=='happy':
  list .replace('happy', '1').replace('angry', '0').replace('sad', '0').replace('emotion', 'happy')
  </code></pre>
  <p>what would be the correct way of doing this. Please help me !</p>