+
+def index_koincidence2(text1, text2):
+ """Pro dva texty vraci index koincidence. Texty nijak neupravuje,
+ ocekava ze se skladaji pouze ze znaku pracovni abecedy."""
+ shod = sum (x == y for x, y in zip(text1, text2))
+ return float(shod)/min(len(text1), len(text2))