fork download
  1. import re
  2.  
  3. text = """4 Followers
  4. 330 Followers
  5. 23.5k Followers
  6. 67k Followers
  7. 25m Followers"""
  8. res = [x.split()[0] for x in text.split('\n')]
  9. print(res)
  10.  
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
['4', '330', '23.5k', '67k', '25m']