mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
remove unnecessary enumeration from top_n.py
This commit is contained in:
parent
396b0f78df
commit
61b2e4062d
@ -10,5 +10,5 @@ N = 1000
|
||||
|
||||
|
||||
for lang in sorted(wordfreq.available_languages()):
|
||||
for (i, word) in enumerate(wordfreq.top_n_list(lang, 1000)):
|
||||
for word in wordfreq.top_n_list(lang, 1000):
|
||||
print('{}\t{}'.format(lang, word))
|
||||
|
Loading…
Reference in New Issue
Block a user