from operator import truediv
'''what would be the output of the below python code def func(sample,res,key,val):'''
def func(sample,res,key,val):
if(key in sample):
res=True
sample.update({key:val})
res=False
res=None
sample={"XS":1,"X":0,"XL":3,"XXL":4}
func(sample,res,"X",2)
print(sample["X"],res)
'''
OUTPUT
2 None
'''