[Tutor] Passing Dictionaries to Functions

Ed Singleton singletoned at gmail.com
Wed Mar 15 14:22:00 CET 2006


If I have a dictionary:

mydict{'var1':"a", 'var2':"b"}

and I want to pass it to a function as:

myfunc(var1="a", var2="b")

How would I do it?

Thanks

Ed


More information about the Tutor mailing list