Lesson 29. Capstone project: document similarity

After reading lesson 29, you’ll be able to

  • Take as input two files and determine their similarity
  • Write organized code by using functions
  • Understand how to work with dictionaries and lists in a real-life setting

How similar are two sentences? Paragraphs? Essays? You can write a program incorporating dictionaries and lists to calculate the similarity of two pieces of work. If you’re a teacher, you could use this to check for similarity between essay submissions. If you’re making changes to your own documents, you can use this program as a sort of version control, comparing versions of your documents to see where major changes were made.

The problem

You’re given two files containing ...

Get Get Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.