Serperate user input into numeric and alpha charaters
<p>I want to take a user input like "3M" or "3 M" and have it print 3000000</p>

<p>where M = 10**6</p>

<pre><code>import humanfriendly
user_input = raw_input("Enter a readable file size: ")
Enter a readable file size: 16G
num_bytes = humanfriendly.parse_size(user_input)
print num_bytes
17179869184
print "You entered:", humanfriendly.format_size(num_bytes)
You entered: 16 GB
</code></pre>

<p>I hope this is what you are looking for. </p>

python arrays split