PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# So, tuple unpacking is
# just one type of
# sequence unpacking.
# Python code by Rain
# version 1.0.4
a, b, c = (22, 33, 44) # tuple
print(a, b, c) # 22 33 44
a, b, c = [1, 2, 3] # list
print(a, b, c) # 1 2 3
a, b, c = range(30, 0, -10) # range
print(a, b, c) # 30 20 10
a, b, c = "xyz" # str
print(a, b, c) # x y z
a, b, c = b'ABC' # bytes
print(a, b, c) # 65 66 67
# It also works with dict and
# dict view objects. dict was
# originally unordered but,
# since Python 3.7, officially
# retains item "insertion order"
# (chronological by addition,
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run