new_contents: print((lambda trans,ref,size,get_ngrams: (lambda g_trans, g_ref: sum([1 if g in g_ref else 0 for g in g_trans]) / len(g_trans))([''.join(x) for x in get_ngrams(trans, size)],[''.join(x) for x in get_ngrams(ref, size)]))(print('Enter translation') or input().strip().lower().split(), print('Enter references') or input().strip().lower().split(), print('Enter n-gram size') or int(input().strip()),lambda sentence, size: [sentence[i:i+size] for i in range(len(sentence) - size + 1)]))
  
subject: Add precision.py from lightning talk