Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dictionary indexing python

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])
 
PREVIOUS NEXT
Tagged: #dictionary #indexing #python
ADD COMMENT
Topic
Name
8+1 =