Skip to content

Instantly share code, notes, and snippets.

@ricardovsilva
Last active February 1, 2016 15:37
Show Gist options
  • Select an option

  • Save ricardovsilva/22bd094a2eaf9c310d6e to your computer and use it in GitHub Desktop.

Select an option

Save ricardovsilva/22bd094a2eaf9c310d6e to your computer and use it in GitHub Desktop.
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