DEV Community

Discussion on: Understanding the Spread Operator in JavaScript

Collapse
ipas profile image
iPAS

Does it seems like in Python? that

func(1, 2, a=1, b=2)

def func(args, **kwargs):
print(*args) --> [1, 2]
print(
*kwargs) --> {a: 1, b: 2}