どうも、ちょげ(@chogetarou)です。
辞書(dictionary)のキー(key)をタプルに変換する方法を紹介します。
方法

辞書のキー(Key)をタプルに変換するには、tuple()を使います。
まず、tuple()を呼び出します。
そして、tuple()の引数に辞書を指定します。
result = tuple(my_dict)
上記のtuple()は、引数に指定した辞書のキーをタプルに変換します。
使用例
my_dict = { 'one':1, 'two':2, 'three':3 }
my_tuple = tuple(my_dict)
print(my_tuple)
出力:
('one', 'two', 'three')
コメント