title: How to delete letters [A-Z] with python
body: <p>I want to delete letters from a string and save which is deleted in variable from these lines as below :</p>
  
  <p><strong>Input =</strong> </p>
  
  <pre><code>1.785K
  
  10MEG
  
  999.1V
  </code></pre>
  
  <p><strong>Expected :</strong></p>
  
  <pre><code>Value = 1.785
  Units detected = K
  
  Value = 10
  Units detected = MEG
  
  Value = 999.1
  Units detected = V
  </code></pre>
  
  <p>I try this code but doens't work </p>
  
  <pre><code>list = ['1.785K','10MEG','999.1V']
  for l in list:
    l.replace("[A-Z]", "")
    print("Value =" + l) 
    print("Units detected =" )
  </code></pre>