Suppose you have a dictionary
num = {'physics': 80, 'math': 90, 'chemistry': 86}
You can use the following code to access the elements -
print(list(num.keys())[0]) # returns 1st key
print(list(num.values())[0]) # returns value of 1st key
print(list(num.items())[0]) #Returns a list of dict’s (key, value) tuple pairs