Last active
February 1, 2016 15:37
-
-
Save ricardovsilva/22bd094a2eaf9c310d6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| n = int(raw_input()) | |
| students_notes = {} #changed this to be a dictionary instead of list | |
| for i in range(0,n): | |
| aux = str.split(raw_input()) #here we get INPUT and transform it into list of strings. | |
| #For example: | |
| #input -> "Marcela 87 24 33 82" | |
| #aux will have value ["Marcela", "87", "24", "33", "82"] | |
| name = aux.pop(0) #or aux.popleft() | |
| notes = aux | |
| students_notes[name] = notes | |
| print students_notes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment