<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from threading import Thread

#Fingerprint of the criminal
finger_print_cr =[	[0, 0, 1, 0, 0, 1, 0, 0, 0 ,1 ,0 ,0], 
					[0, 0, 1, 1, 1, 0, 1, 1, 1 ,0 ,0 ,0], 
					[0, 1, 0, 0, 0, 0, 0, 1, 0 ,1 ,0 ,0],
					[0, 0, 0, 1, 0, 1, 0, 1, 1 ,0 ,1 ,0],
					[0, 0, 1, 0, 1, 0, 0, 1, 0 ,0 ,0 ,0],
					[0, 0, 0, 1, 0, 0, 1, 0, 0 ,1 ,0 ,0]
				]

#Fingerprint of the first suspect
finger_print_s1 =[	[0, 0, 1, 0, 0, 1, 0, 0, 0 ,1 ,0 ,0], 
					[0, 0, 0, 1, 1, 0, 1, 1, 1 ,0 ,0 ,0], 
					[0, 1, 0, 0, 0, 1, 0, 1, 1 ,1 ,1 ,0],
					[0, 0, 1, 1, 0, 1, 0, 1, 1 ,0 ,1 ,0],
					[0, 0, 1, 0, 1, 0, 0, 0, 0 ,0 ,0 ,0],
					[0, 0, 0, 1, 0, 0, 1, 0, 1 ,1 ,0 ,0]
				]

#Fingerprint of the second suspect
finger_print_s2 =[	[0, 0, 1, 0, 0, 1, 0, 0, 0 ,1 ,0 ,0], 
					[0, 0, 0, 1, 1, 0, 1, 0, 1 ,0 ,0 ,0], 
					[0, 1, 1, 0, 0, 1, 0, 1, 1 ,1 ,1 ,0],
					[1, 1, 1, 1, 0, 1, 0, 1, 1 ,0 ,1 ,1],
					[0, 0, 1, 0, 1, 0, 0, 0, 0 ,0 ,0 ,0],
					[0, 0, 0, 1, 0, 0, 1, 0, 1 ,1 ,0 ,0]
				]
#Counters for how many pixels are equal between the criminal
#and the suspect.
match_counter_1 = 0
match_counter_2 = 0

for i in range(6):
	for j in range(12):
		if finger_print_cr[i][j] == finger_print_s1[i][j]:
			match_counter_1 = match_counter_1 + 1
		if finger_print_cr[i][j] == finger_print_s2[i][j]:
			match_counter_2 = match_counter_2 + 1

match_degree_1 = match_counter_1 / 72.0
match_degree_2 = match_counter_2 / 72.0

print 'Matching degree 1 = ' + str(match_degree_1)
print 'Matching degree 2 = ' + str(match_degree_2)
</pre></body></html>