8 lines
128 B
Python
8 lines
128 B
Python
import sys
|
|
|
|
from wordfreq import zipf_frequency
|
|
|
|
for s in sys.stdin:
|
|
w = s.rstrip()
|
|
print(f"{w}={zipf_frequency(w, 'ja')}")
|