my_dict = {"jhon":5,"tim":8,"mrBeast":104}
index = 1 #element index we want
key = list(my_dict.keys())[index] # finding key name using element index
print(my_dict[key])
# Values:
a_dictionary = {"a": 1, "b": 2}
values = a_dictionary.values()
values_list = list(values)
a_value = values_list[0]
print(a_value) # Expected output: 1
# ---------------
# Keys
a_dictionary = {"a": 1, "b": 2}
keys_list = list(a_dictionary)
a_key = keys_list[0]
print(a_key) # Expected output: a