I am trying to print a dictionary, but avoid one of the key:value pair, the code is,
[(key,value) for key, value in row.items() if key is not 'key1']
but 'key1' still got printed, how to fix it?
I am trying to print a dictionary, but avoid one of the key:value pair, the code is,
[(key,value) for key, value in row.items() if key is not 'key1']
but 'key1' still got printed, how to fix it?