Created
August 11, 2016 21:29
-
-
Save jProgr/bd585901af3425737a7e1d10bea199a4 to your computer and use it in GitHub Desktop.
String of integers separated by spaces to a list of int
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x='4 51 1 3' | |
a=list(map(int,x.split(' '))) | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment