Python
This page helps with python and general programming tips you may not know:
'*' and '**' Operators
def sum(a, b):
return a + b
values = (1, 2)
s = sum(*values)s = sum(1, 2)values = { 'a': 1, 'b': 2 }
s = sum(**values)def sum(a, b, c, d):
return a + b + c + d
values1 = (1, 2)
values2 = { 'c': 10, 'd': 15 }
s = sum(*values1, **values2)Yield and Generators
Last updated