def test(): s = "12 34 56 7" slist = s.split() print(slist) if __name__ == '__main__': test()
Standard input is empty
['12', '34', '56', '7']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!