changeset 64 | 333092b68926 |
child 386 | a0bec380b44f |
63:f5eac04a00fe | 64:333092b68926 |
---|---|
1 students = { |
|
2 'Madhu': 12, |
|
3 'Shantanu':45, |
|
4 'Puneeth': 54, |
|
5 'Vattam': 35, |
|
6 'KD': 50, |
|
7 } |
|
8 |
|
9 all_marks = students.values() |
|
10 unique_marks = set(all_marks) |
|
11 |
|
12 print "Number of Duplicate marks: ", len(all_marks) - len(unique_marks) |
|
13 print "Duplicate marks: ", set(all_marks - list(unique_marks)) |