fork download
  1. str1 = """0.35 23.8
  2. 0.39 23.7
  3. 0.43 23.6
  4. 0.47 23.4
  5. 0.49 23.1
  6. 0.51 22.8
  7. 0.53 22.4
  8. 0.55 21.6"""
  9. splitted = str1.split()
  10. list1 = splitted[::2] #column 1
  11. list2 = splitted[1::2] #column 2
  12. print list1, list2
  13.  
  14.  
Success #stdin #stdout 0.08s 10864KB
stdin
Standard input is empty
stdout
['0.35', '0.39', '0.43', '0.47', '0.49', '0.51', '0.53', '0.55'] ['23.8', '23.7', '23.6', '23.4', '23.1', '22.8', '22.4', '21.6']