Figuring out the part that was slowing my co-routine wasn’t easy… Three red-bulls later….
|
1
2
3
4
|
if “key” in d.keys():
print “Found pattern”
else:
print “No match”
|
|
1
2
3
4
5
|
try:
k=d["key"]
print “Found pattern”
except:
print “No match”
|
