How to use * (asterisk) in function calls with tuple elements in Python

1 Answer

0 votes
def function(a, b, c):
    print(a, b, c)

t = (3, 7, 8)

function(*t)

'''
run:

3 7 8

'''

 



answered Dec 17, 2017 by avibootz
edited Dec 17, 2017 by avibootz
...