packing dictionaries

Solutions on MaxInterview for packing dictionaries by the best coders in the world

showing results for - "packing dictionaries"
Ilias
01 May 2019
1# A sample program to demonstrate unpacking of
2# dictionary items using **
3def fun(a, b, c):
4    print(a, b, c)
5 
6# A call with unpacking of dictionary
7d = {'a':2, 'b':4, 'c':10}
8fun(**d)
9
similar questions
queries leading to this page
packing dictionaries