I am trying to use the Update Cursor to look-up a key in a dictionary I created, Region_dic and if it finds the key, it will update the row with the value. However, for some reason, the if statement equals false, when it should be true. Thanks for your help!
keyRegion='directory pathway'
with arcpy.da.UpdateCursor(keyRegion,["Region","ID"]
for row in cursor:
if row[0] in Region_dic:
row[1]==Region_dic.get(row[0])
cursor.updateRow(row)