Here’s some sample code:
def printargs(**kwargs):
print kwargs
printargs(foo='bar')
printargs(**dict(foo='bar'))
printargs(**{'foo':'bar'})
Today’s question is: In what way are the 3 bottom lines different with respect to their behavior?
Here’s some sample code:
def printargs(**kwargs):
print kwargs
printargs(foo='bar')
printargs(**dict(foo='bar'))
printargs(**{'foo':'bar'})
Today’s question is: In what way are the 3 bottom lines different with respect to their behavior?