Answers for "destructuring for dict in python"

0

destructuring for dict in python

from operator import itemgetter

params = {'a': 1, 'b': 2}

a, b = itemgetter('a', 'b')(params)
Posted by: Guest on March-02-2022

Python Answers by Framework

Browse Popular Code Answers by Language