1def fun(a, b, c, d):
2 print(a, b, c, d)
3
4# Driver Code
5my_list = [1, 2, 3, 4]
6
7# Unpacking list into four arguments
8fun(*my_list)
1# unpack a list python:
2list = ['red', 'blue', 'green']
3
4# option 1
5red, blue = colors
6
7# option 2
8*list
9