Answers for "* operator unpacks the tuple elements and assign them to the function parameter"

0

* operator unpacks the tuple elements and assign them to the function parameter

def display(x, y, z):
    print(x, y, z)

tpl = (1, 2, 3)
display(*tpl)
Posted by: Guest on July-28-2021

Code answers related to "* operator unpacks the tuple elements and assign them to the function parameter"

Browse Popular Code Answers by Language