fork download
  1.  
  2.  
  3. def test():
  4. s = "12 34 56 7"
  5. slist = s.split()
  6. print(slist)
  7.  
  8. if __name__ == '__main__':
  9. test()
Success #stdin #stdout 0.02s 9140KB
stdin
Standard input is empty
stdout
['12', '34', '56', '7']