title: How to remove negative values from a list using lambda functions by python
body: <p>I have implemented a lambda function to sort a list. now i want to remove all the negative objects from the list by using lambda functions . </p>
  
  <pre><code>dto_list.sort(key=lambda x: x.count, reverse=True)
  </code></pre>
  
  <p>any one know a way to write the lambda expression to do it? I could not find a proper tutorial</p>