0

I have a this type dictionary

   a= {(93, 184): b'\x01*\x00P\xd2\xac2\xdf5\xfeT\xaa\xa7\beb\x80\x10\d01\x1d\xf9=\x00\x00\x01\x01\x08\nLy\x16\xd4\xa68.\xc4'}

Its key (93,184) changes every time.

I want to get my key for example a[x][x]=(93,184)

How can I do this? I am using Python 3.6

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
CKocar
  • 566
  • 9
  • 25

1 Answers1

0

Although your question is not very clear,

Here is how you could get your keys into a list.

a= {(93, 184): b'\x01*\x00P\xd2\xac2........'}
b=list(a.keys())
print(b)

Hope it helps.

Kshitij Dhyani
  • 703
  • 2
  • 8
  • 23