I have a dictionary like this:
myDict = {
\'BigMeadow2_U4\': (1609.32, 22076.38, 3.98),
\'MooseRun\': (57813.48, 750187.72, 231.25),
\'Hw
d = {'Apple': 1, 'Banana': 9, 'Carrot': 6, 'Baboon': 3, 'Duck': 8, 'Baby': 2}
print(d)
def getDictKeyandValue(dict,n):
c=0
mylist=[]
for i,j in d.items():
c+=1
if c==n:
mylist=[i,j]
break
return mylist
print(getDictKeyandValue(d,2))