I have the below dictionary :
{'ram': ('math', 21), 'madhu': ('phy', 22), 'shyam': ('chem', 23)}
and I want to compare the values of dictionary with User input, but when I say m.keys()
, it gives output as:
dict_keys(['ram', 'madhu', 'shyam'])
To compare with user input, how do I print the keys as keywords only like ram,madhu,shyam
, instead of printing dict_keys(['ram', 'madhu', 'shyam'])
?