I know this is a silly question, but I would like to know why dictx is not being updated? The functions returns dictx value ignoring the if block Thanks
def testing_func(num):
if num == 5:
dictx = {'var1':'val1',
'var2': num}
dictx = {'var':'val1',
'var2':'not five'}
return dictx