Skip to content

Instantly share code, notes, and snippets.

@ashutoshkarna03
Created August 14, 2019 14:38
Show Gist options
  • Save ashutoshkarna03/aa7659b969a1b8b6dc12b2857e7902f2 to your computer and use it in GitHub Desktop.
Save ashutoshkarna03/aa7659b969a1b8b6dc12b2857e7902f2 to your computer and use it in GitHub Desktop.
db_dict = {
'1':'a',
'2':'b',
'3':'c',
'4':'d'
}
ans_dict = {
'3':'c',
'4':'a'
}
score = 0
for i in db_dict:
for j in ans_dict:
if i==j:
if db_dict[i] == ans_dict[j]:
score += 1
print(score)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment