Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

unpack dictionaryp

 
d = {'k1':10, 'k2':20, 'k3':30}
def fun(k1,k2,k3):
    print(k1,k2,k3)
fun(**d)    
 
Comment

PREVIOUS NEXT
Code Example
Python :: python find which os 
Python :: how to change the window colour in pygame 
Python :: how to save a dictionary as a file in python 
Python :: kivy changing screen in python 
Python :: python pause 
Python :: django import timezone 
Python :: how to check if a number is odd python 
Python :: error warning tkinter 
Python :: pandas drop columns by index 
Python :: jupyter notebook extensions 
Python :: python comprehension with sum 
Python :: how to calculate mean in python 
Python :: python project ideas 
Python :: python aritmethic print 
Python :: saving a pandas dataframe as a csv 
Python :: python intersection of two lists 
Python :: django session expire time 
Python :: python your mom 
Python :: python get pixel color 
Python :: get all combinations from two lists python 
Python :: add a title to pandas dataframe 
Python :: pyqt pylatex 
Python :: remove duplicates based on two columns in dataframe 
Python :: simulated annealing python 
Python :: trump 
Python :: pandas change frequency of datetimeindex 
Python :: discord python wait for user input 
Python :: python create folder if not exists 
Python :: python datetime last day of month 
Python :: pyspark correlation 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =