Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.02 KB

File metadata and controls

20 lines (15 loc) · 1.02 KB

Description:

Here is Python Script which checks the Plagiarism between 2 files.

  • difflib: This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs

  • SequenceMatcher: This is a class in difflib which compare the sequence of characters or elements btw files as long as they are hashable

Procedure to follow:

  • Import SequenceMatcher from difflib
  • Open text files in read mode
  • Pass required arguments in SequenceMatcher
  • Print the O/P in form of %

Sample Output:

For any queries please contact?