What does the star and doublestar operator mean in a function call?

The single star * unpacks the sequence/collection into positional arguments, so you can do this: def sum(a, b): return a + b values = (1, 2) s = sum(*values) This will unpack the tuple so that it actually executes as: s = sum(1, 2) The double star ** does the same, only using a dictionary … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)