Created
July 26, 2017 18:05
-
-
Save jgould22/a37969a507093318923e76978c434ecb to your computer and use it in GitHub Desktop.
This reads from std in and stores the results in a list of lists using Python
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
import sys | |
list_of_lists = [] | |
for line in sys.stdin: | |
new_list = [int(elem) for elem in line.split()] | |
list_of_lists.append(new_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment