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)
1l = [0, 1, 2]
2
3a, b, c = l
4
5print(a)
6print(b)
7print(c)
8# 0
9# 1
10# 2
1# unpack a list python:
2list = ['red', 'blue', 'green']
3
4# option 1
5red, blue = colors
6
7# option 2
8*list
9