<reponame>Vrushali-anil-Chaudhari/Dev-Scripts<gh_stars>10-100
from difflib import SequenceMatcher

with open("/Users/avik/Desktop/GSSOC/Plagiarism/1.txt") as file1, open("/Users/avik/Desktop/GSSOC/Plagiarism/2.txt") as file2:
    file1data = file1.read()
    file2data = file2.read()
    similarity = SequenceMatcher(None, file1data, file2data).ratio()
    print(similarity*100)
