I have dict like this:
d = {'A1': 200,
'A2': 150,
'A3': 100}
I want to multiply each element by 2 but the newvalue can't be more than 300. for above example my output will be..
d_final = {'A1': 300,
'A2': 300,
'A3': 200}
Can this be done using lambda or map??