Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scores = '54 - Alice,35 - Bob,27 - Carol,27 - Chuck,05 - Craig,30\
- - Dan,27 - Erin,77 - Eve,14 - Fay,20 - Frank,48 - Grace,61 - Heidi,03 \
- - Judy,28 - Mallory,05 - Olivia,44 - Oscar,34 - Peggy,30 - Sybil,82\
- - Trent,75 - Trudy,92 - Victor,37 - Walter'
- list_of_scores = scores.split(",")
- #print(list_of_scores)
- sorted_list = sorted(list_of_scores)
- print(sorted_list)
- print()
- print()
- reverse_order = sorted_list[::-1]
- print(reverse_order)
Advertisement
Add Comment
Please, Sign In to add comment