d[key] += 1
-def increment_dictionary_value2(key, value, d):
- if key not in value:
+def increment_dictionary_value2(key, d):
+ if key not in d:
d[key] = 1
else:
d[key] += 1
def value_exists2(value, d):
- for d in d.values:
- if "__contains__" in dir(d):
- if value in d:
- return True
- else:
- return False
+ for v in d.values():
+ if v == value:
+ return True
+ elif isinstance(v, list) and value in v:
+ return True
+
+ return False
\ No newline at end of file
--- /dev/null
+UEsDBBQAAAAIAEdKR1REFzSfLgEAAFYDAAAaABwAbmlsZm8zNTktcHl1cHBnM18xL29yaWcucHlV
+VAkAA8bVAGLG1QBidXgLAAEEehxpWQQA4fUFhVJNb4MwDL3zKyztAlpViR4rcd0v2E6oQhExU9TU
+oCSl5d/P+eiAdms5BdvvPfvZb/A1DN+qc1BmmcQOjjg1eFXW2ZyfG5DFPgP+DLqzIZ8GRSCzWD0K
+fcZUX+bh7wESogG0DU+bFwktpGxc30jVuih2RyBrjh6givEFiPDS9KSnp2gVhgHqXRCPwX9pFbUG
+T0guEKqehJmaUFCujUjo98o79gK6W0Nfd1SGEGqLD8mFYPItmq/Z+/KJfVsxDEgyLufmfFzNimEw
+2KnrjHbcZQX1Ifx0vYEjC8Q1Kocn3uLcoh+s3mukxFLwLBXE91yVWH8bKpZXwok/bmp3f1O+kXF9
+TKs2Ri8cMmvdpPJpeOG3GGoGKKvIOkEt5uMGvBUFCJLz1Y6viZZzfAhe3g9QSwMEFAAAAAgAR0pH
+VEawZ9CvAAAAYAEAACQAHABuaWxmbzM1OS1weXVwcGczXzEvcHl1cHBndGVzdDNfMS5sb2dVVAkA
+A8bVAGLG1QBidXgLAAEEehxpWQQA4fUF41IGAgVv/6AgV+8QBZ/D04JDHBVCAwLcPd1CXIMUQLJc
+XCC+goKxnqGeoZWCoYFCQf7hJXnpekjiRjjEjXGIm+AQN7VSMMImboZD3ByHuAUO8y1R1HOBPR8c
+6uvrqBDgf7jFzx2ozdhAT0HD0MBAISk14/C2smJNiCqXUoXDS4oUCopSczJzM/OA7BIFd38Xb6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