ข้ามไปยังเนื้อหา

คำที่พบบ่อยที่สุด

คำที่พบบ่อยที่สุด

หาคำโปรดของข้อความหนึ่งๆ

Work in three stages. Clean: remove the punctuation with .replace() and make everything lowercase with .lower(). Count: .split() the text into words and count them in a dictionary with counts.get(word, 0) + 1. Choose: walk through the words in their original order and switch to a word only when its count is strictly bigger, so that a tie goes to the earlier word.

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP