[ create a new paste ] login | about

Link: http://codepad.org/rVFraB9U    [ raw code | output | fork ]

Python, pasted on Feb 18:
1
2
3
4
5
6
7
8
9
# First way
student_score = {'Ritika': 5, 'Sam': 7, 'John': 10, 'Aadi': 8}

print student_score

#for key, value in student_score.items():
  #  print key, ':', value

# ----------                ----------


Output:
1
{'Ritika': 5, 'Aadi': 8, 'John': 10, 'Sam': 7}


Create a new paste based on this one


Comments: