How can I transform tuple like this:
(
('a', 1),
('b', 2)
)
to dict:
{
'a': 1,
'b': 2
}
See Question&Answers more detail:osHow can I transform tuple like this:
(
('a', 1),
('b', 2)
)
to dict:
{
'a': 1,
'b': 2
}
See Question&Answers more detail:os