Creating numbered list of output
问题 How can I edit my code such that my output: the 8512 and 7759 i 6182 to 6027 a 4716 of 4619 he 2873 in 2846 you 2777 was 2457 becomes 1. the 8512 2. and 7759 3. i 6182 4. to 6027 5. a 4716 6. of 4619 7. he 2873 8. in 2846 9. you 2777 10. was 2457 I attempted to use the enumerate function for rank, (value,num) in enumerate(sorted_list): however this leaves me with the same output. Could I somehow append ranking into the list where value and num is defined? d = dictionary(word_list) def sort